Commit 0a6bf60d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vev: Tear down the list of events

It was either this or adding a suppression for lsan.
parent f25da8ef
......@@ -219,12 +219,17 @@ void
VEV_Destroy(struct vev_root **evbp)
{
struct vev_root *evb;
struct vev *e;
TAKE_OBJ_NOTNULL(evb, evbp, VEV_BASE_MAGIC);
assert(pthread_equal(evb->thread, pthread_self()));
while ((e = VBH_root(evb->binheap)) != NULL) {
VEV_Stop(evb, e);
free(e);
}
VBH_destroy(&evb->binheap);
free(evb->pfd);
free(evb->pev);
/* XXX: destroy evb->binheap */
FREE_OBJ(evb);
}
......
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