From: Christian Babeux Date: Thu, 28 Feb 2013 20:48:27 +0000 (-0500) Subject: Fix: Memory leaks on unknown hashtable type error handling X-Git-Tag: v2.2.0-rc1~51 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=42305b3673038da331e5a65093a803f9a9da9946 Fix: Memory leaks on unknown hashtable type error handling Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- diff --git a/src/common/hashtable/hashtable.c b/src/common/hashtable/hashtable.c index 30bed07df..8c26ebe15 100644 --- a/src/common/hashtable/hashtable.c +++ b/src/common/hashtable/hashtable.c @@ -105,6 +105,7 @@ struct lttng_ht *lttng_ht_new(unsigned long size, int type) break; default: ERR("Unknown lttng hashtable type %d", type); + lttng_ht_destroy(ht); goto error; }