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>
Fri, 15 Apr 2022 03:46:04 +0000 (23:46 -0400)
commitaafac6e102f9a2a44318743e521a3270a580051d
treecfae5321c72eebb3e261c99dd7c23fcf8db76a1f
parent048c37a118effaad73731390c6cbef8a138ce524
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.cpp
This page took 0.024287 seconds and 4 git commands to generate.