From: David Goulet Date: Mon, 22 Sep 2014 14:50:42 +0000 (-0400) Subject: Fix: use after free in agent subsystem X-Git-Tag: v2.6.0-rc1~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=988ae332d6c10c45373e6ae2b319434463712c66;p=lttng-tools.git Fix: use after free in agent subsystem Fixes Coverity issue 1230592. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index b267503fc..1c1c6ab18 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -769,6 +769,7 @@ struct agent *agent_create(enum lttng_domain_type domain) ret = agent_init(agt); if (ret < 0) { free(agt); + agt = NULL; goto error; }