Fix: sessiond: leak of config_path on duplicate --config option
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Apr 2021 18:47:14 +0000 (14:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Apr 2021 18:47:14 +0000 (14:47 -0400)
commitfcf27bee908a5384316bef111bf42cc595e5e717
tree534bafd6b823942c88a084c9c4c07ede9b687755
parent9d596320136eb060354a686a455ad93639e3861c
Fix: sessiond: leak of config_path on duplicate --config option

1452207 Resource leak

The system resource will not be reclaimed and reused, reducing the
future availability of the resource.

CID 1452373 (#3 of 3): Resource leak (RESOURCE_LEAK)
26. overwrite_var: Overwriting config_path in config_path =
utils_expand_path(optarg) leaks the storage that config_path points to.

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I70eff0f4de5ac9b84b699e88232669259eab54db
src/bin/lttng-sessiond/main.c
This page took 0.025166 seconds and 4 git commands to generate.