From ab8b1c54e595bb2739d0309d3f48ab12f760106e Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 11 Feb 2014 16:04:15 -0500 Subject: [PATCH] Fix: use after free error code path Signed-off-by: David Goulet --- src/bin/lttng-relayd/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-relayd/session.c b/src/bin/lttng-relayd/session.c index 02cc748e7..a9907c45d 100644 --- a/src/bin/lttng-relayd/session.c +++ b/src/bin/lttng-relayd/session.c @@ -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; } -- 2.34.1