X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_events.c;h=b30ec1fdc644f5a0e2d2bc3202428f31bfdbfe2d;hb=baa81d3ac6e60bf3caf261342e10a7f85e87e23a;hp=f447676f312073987a75f1e2ee15ad6a6ab70181;hpb=2722170124d7942f34b991237874a6d6c17fc421;p=lttng-tools.git diff --git a/src/bin/lttng/commands/disable_events.c b/src/bin/lttng/commands/disable_events.c index f447676f3..b30ec1fdc 100644 --- a/src/bin/lttng/commands/disable_events.c +++ b/src/bin/lttng/commands/disable_events.c @@ -228,6 +228,9 @@ int cmd_disable_events(int argc, const char **argv) ret = disable_events(session_name); end: + if (!opt_session_name && session_name) { + free(session_name); + } poptFreeContext(pc); return ret; }