[Libevent-users] [PATCH] event.c: event_base_free(): dealloc
min_heap
Niels Provos
provos at citi.umich.edu
Mon Nov 12 22:33:23 EST 2007
Thank you. Applied to trunk and branch.
Niels.
On Nov 12, 2007 5:02 AM, Christopher Layne <clayne at anodized.com> wrote:
> ==00:00:00:08.662 19894== 64 bytes in 1 blocks are definitely lost in loss record 4 of 7
> ==00:00:00:08.662 19894== at 0x4A06B92: malloc (vg_replace_malloc.c:149)
> ==00:00:00:08.662 19894== by 0x4A06C06: realloc (vg_replace_malloc.c:306)
> ==00:00:00:08.662 19894== by 0x4C24E16: min_heap_reserve (min_heap.h:103)
> ==00:00:00:08.662 19894== by 0x4C24C1C: event_add (event.c:632)
>
> Index: event.c
> ===================================================================
> --- event.c (revision 524)
> +++ event.c (working copy)
> @@ -229,6 +229,7 @@
> for (i=0; i < base->nactivequeues; ++i)
> assert(TAILQ_EMPTY(base->activequeues[i]));
> assert(min_heap_empty(&base->timeheap));
> + min_heap_dtor(&base->timeheap);
>
> for (i = 0; i < base->nactivequeues; ++i)
> free(base->activequeues[i]);
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkeymail.org/mailman/listinfo/libevent-users
>
>
More information about the Libevent-users
mailing list