Fix: use after free error code path
authorDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 21:04:15 +0000 (16:04 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 21:04:22 +0000 (16:04 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/session.c

index 02cc748e75f6fd8f25f3cf5e47623d7523c1affb..a9907c45d9c264a424b59646a08c47a9ffd033d3 100644 (file)
@@ -52,6 +52,7 @@ struct relay_session *session_create(void)
        session->ctf_traces_ht = lttng_ht_new(0, LTTNG_HT_TYPE_STRING);
        if (!session->ctf_traces_ht) {
                free(session);
+               session = NULL;
                goto error;
        }
 
This page took 0.025463 seconds and 4 git commands to generate.