Fix: resource leak in enable-event command
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index 26195af5a7582cd7c6afccda6a1d3827d6d1bd07..6e63432db078e8d0a6afa4a41ebe5b1335c9f947 100644 (file)
@@ -153,7 +153,7 @@ static void usage(FILE *ofp)
        fprintf(ofp, "                               TRACE_DEBUG_LINE     = 13\n");
        fprintf(ofp, "                               TRACE_DEBUG          = 14\n");
        fprintf(ofp, "                               (shortcuts such as \"system\" are allowed)\n");
-       fprintf(ofp, "    --filter \'expression\'\n");
+       fprintf(ofp, "  -f, --filter \'expression\'\n");
        fprintf(ofp, "                           Filter expression on event fields and context.\n");
        fprintf(ofp, "                           Event recording depends on evaluation.\n");
        fprintf(ofp, "                           Only specify on first activation of\n");
@@ -629,6 +629,7 @@ static int enable_events(char *session_name)
                                                        session_name, opt_filter);
                                        break;
                                }
+                               free(exclusion_string);
                                goto error;
                        } else {
                                MSG("Filter '%s' successfully set", opt_filter);
This page took 0.026246 seconds and 4 git commands to generate.