From: Mathieu Desnoyers Date: Mon, 19 Mar 2012 21:10:20 +0000 (-0400) Subject: fix: lttng_ht_destroy memleak X-Git-Tag: v2.0.0-rc4~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cf5280ea47a194ae9e96f02afb9e9059813422b7;p=lttng-tools.git fix: lttng_ht_destroy memleak Acked-by: David Goulet Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/hashtable/hashtable.c b/src/common/hashtable/hashtable.c index 187a4d6b3..ac39004e6 100644 --- a/src/common/hashtable/hashtable.c +++ b/src/common/hashtable/hashtable.c @@ -110,6 +110,7 @@ void lttng_ht_destroy(struct lttng_ht *ht) ret = cds_lfht_destroy(ht->ht, NULL); assert(!ret); + free(ht); } /*