Fix: use after free in agent subsystem
[lttng-tools.git] / 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.023961 seconds and 5 git commands to generate.