Commit 814f2b42 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Free some resources on VEV_Destroy

parent e06e3bc7
......@@ -219,11 +219,11 @@ VEV_Destroy(struct vev_root **evbp)
{
struct vev_root *evb;
AN(evbp);
evb = *evbp;
*evbp = NULL;
CHECK_OBJ_NOTNULL(evb, VEV_BASE_MAGIC);
TAKE_OBJ_NOTNULL(evb, evbp, VEV_BASE_MAGIC);
assert(evb->thread == pthread_self());
free(evb->pfd);
free(evb->pev);
/* destroy evb->binheap */
evb->magic = 0;
free(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