Fix: use-after-free on error of lttng_event creation and copy
[lttng-tools.git] / src / lib / lttng-ctl / event.c
index f8abf309e5fe354ce45c69be446a7866fba3aefd..17dd7f72bfe8fd9bbe80c6ccd8afcb35b9d3d3f3 100644 (file)
@@ -51,6 +51,7 @@ end:
        return event;
 error:
        free(event);
+       event = NULL;
        goto end;
 }
 
This page took 0.02582 seconds and 5 git commands to generate.