Fix: use after free in agent subsystem
authorDavid Goulet <dgoulet@efficios.com>
Mon, 22 Sep 2014 14:50:42 +0000 (10:50 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 22 Sep 2014 14:50:42 +0000 (10:50 -0400)
Fixes Coverity issue 1230592.

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

index b267503fcbcec3e58890fda360c507496645afe6..1c1c6ab18ad4fc341f805288de1092f667bedb85 100644 (file)
@@ -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;
        }
 
This page took 0.02563 seconds and 4 git commands to generate.