X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fevmap.c;h=ebedb7881437e9c4e04d198cfb155da5eea6bd62;hb=75cceac7017a24e33d65f917155ad0d8b15ef178;hp=5521626cf2431137f542c94d406801fef2833328;hpb=caad56fb97ea14d8b64df8879f68fe82175aa54f;p=netatalk.git diff --git a/libevent/evmap.c b/libevent/evmap.c index 5521626c..ebedb788 100644 --- a/libevent/evmap.c +++ b/libevent/evmap.c @@ -148,6 +148,7 @@ void evmap_io_clear(struct event_io_map *ctx) next = HT_NEXT_RMV(event_io_map, ctx, ent); mm_free(this); } + HT_CLEAR(event_io_map, ctx); /* remove all storage held by the ctx. */ } #endif @@ -163,7 +164,6 @@ void evmap_io_clear(struct event_io_map *ctx) #define GET_SIGNAL_SLOT_AND_CTOR(x, map, slot, type, ctor, fdinfo_len) \ do { \ if ((map)->entries[slot] == NULL) { \ - EVUTIL_ASSERT(ctor != NULL); \ (map)->entries[slot] = \ mm_calloc(1,sizeof(struct type)+fdinfo_len); \ EVUTIL_ASSERT((map)->entries[slot] != NULL); \