Fix: lttng: enable-channel: leak of popt arguments
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Apr 2022 00:22:03 +0000 (20:22 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 May 2022 14:34:57 +0000 (10:34 -0400)
commitf5c47c1c084aabc19e20830a6fc1af748b49b833
tree3dbfbc54a18dc12d23789fe528fd0fffe7ff06c1
parent197dc110f66d9478835c4a1b71a4c73b696814f4
Fix: lttng: enable-channel: leak of popt arguments

==1245463==ERROR: LeakSanitizer: detected memory leaks

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

Arguments obtained with poptGetOptArg() must be free'd.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I5a65ca6fbaa18f7717ea918a5bc7f42daeb1009a
src/bin/lttng/commands/enable_channels.c
This page took 0.024814 seconds and 4 git commands to generate.