From: David Goulet Date: Thu, 28 Nov 2013 20:40:44 +0000 (-0500) Subject: Fix: Resource leak in ust registry X-Git-Tag: v2.2.6~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=721e5ccdd78c60dddb947f1a300468230b94d655;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; }