Commit d55f9c91 authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos

xseg: Free xseg context allocated memory

The caller never uses the same allocated memory
for the xseg context again. Instead calls xseg_join()
to rejoin the segment. This introduces a memory leak every time
the caller leaves and rejoins the shared memory segment on the
same process address space.
parent 9fb86764
......@@ -983,7 +983,7 @@ void xseg_leave(struct xseg *xseg)
__unlock_domain();
type->ops.unmap(xseg->segment, xseg->segment_size);
//FIXME free xseg?
free(xseg);
pthread_mutex_unlock(&xseg_joinref_mutex);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment