From 42305b3673038da331e5a65093a803f9a9da9946 Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Thu, 28 Feb 2013 15:48:27 -0500 Subject: [PATCH] Fix: Memory leaks on unknown hashtable type error handling Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- src/common/hashtable/hashtable.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1