Skip to content

Commit

Permalink
Fix: lttng: track: leaked command parameter
Browse files Browse the repository at this point in the history
==1676099==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 5 byte(s) in 1 object(s) allocated from:
    #0 0x7f19429d9dd9 in __interceptor_malloc /usr/src/debug/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x7f19425342ad in poptGetNextOpt (/usr/lib/libpopt.so.0+0x82ad)

Signed-off-by: Jérémie Galarneau <[email protected]>
Change-Id: Ibafcaf42ad4f842b3fa74cf91dc5ecc8acb3487d
  • Loading branch information
jgalar committed May 18, 2022
1 parent 782ee89 commit 476ca01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/lttng/commands/track-untrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void process_attr_command_init(struct process_attr_command_args *cmd,
{
cmd->process_attr = process_attr;
cmd->all = false;
lttng_dynamic_pointer_array_init(&cmd->string_args, NULL);
lttng_dynamic_pointer_array_init(&cmd->string_args, free);
}

static void process_attr_command_fini(struct process_attr_command_args *cmd)
Expand Down

0 comments on commit 476ca01

Please sign in to comment.