From: David Goulet Date: Thu, 28 Nov 2013 20:40:44 +0000 (-0500) Subject: Fix: Resource leak in ust registry X-Git-Tag: v2.4.0-rc2~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d24ff3fdbdeb795bfde99e499fe75427cbe4f5d7;p=lttng-tools.git Fix: Resource leak in ust registry Fix coverity issue 1019918. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c index 65ba82c1b..8c3d08d82 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -592,6 +592,7 @@ int ust_registry_session_init(struct ust_registry_session **sessionp, error: ust_registry_session_destroy(session); + free(session); error_alloc: return -1; }