Fix: Resource leak in ust registry
authorDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 20:40:44 +0000 (15:40 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 20:40:44 +0000 (15:40 -0500)
Fix coverity issue 1019918.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-registry.c

index 65ba82c1b99b16bb51991161bc32f42dafcadcae..8c3d08d825c5568255ece6295d0b6be1dc2aa2a4 100644 (file)
@@ -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;
 }
This page took 0.027007 seconds and 4 git commands to generate.