From: David Goulet Date: Tue, 11 Feb 2014 21:04:15 +0000 (-0500) Subject: Fix: use after free error code path X-Git-Tag: v2.5.0-rc1~187 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=78394403b4986dc86733d2106e68405f13fa31d5;p=lttng-tools.git Fix: use after free error code path Signed-off-by: David Goulet --- 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; }