From 0e779906f9a14f7c9f3bd818be5b9ff082b32553 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Mon, 26 Jan 2009 06:13:24 +0000 Subject: [PATCH] fix memleak in evmap_signal_clear; from Alexander Drozdov svn:r1049 --- evmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evmap.c b/evmap.c index ec312dc6..ee04639a 100644 --- a/evmap.c +++ b/evmap.c @@ -228,7 +228,6 @@ evmap_signal_initmap(struct event_signal_map *ctx) void evmap_signal_clear(struct event_signal_map *ctx) { - ctx->nentries = 0; if (ctx->entries != NULL) { int i; for (i = 0; i < ctx->nentries; ++i) { @@ -238,6 +237,7 @@ evmap_signal_clear(struct event_signal_map *ctx) mm_free(ctx->entries); ctx->entries = NULL; } + ctx->nentries = 0; } -- 2.40.0