Fix: Memory leaks on unknown hashtable type error handling
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 28 Feb 2013 20:48:27 +0000 (15:48 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 21 Mar 2013 17:15:25 +0000 (13:15 -0400)
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/hashtable/hashtable.c

index 30bed07df6b6331cb2dbb18c169a2755a2e0f27b..8c26ebe15b63d3a71f2efd40398e2781e5ddbb59 100644 (file)
@@ -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;
        }
 
This page took 0.024935 seconds and 4 git commands to generate.