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