Fix a memory leak on win32 socket->event map.

This would lose some memory every time an event_base was freed on win32.

Found by Dimitre Piskyulev.
This commit is contained in:
Nick Mathewson 2011-04-21 17:33:13 -04:00
parent 364291e9a9
commit b4f89f00c6

View File

@ -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