Fix: clean-up sessiond condig structure on initialization error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 19:50:48 +0000 (15:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Sep 2018 16:14:56 +0000 (12:14 -0400)
commit26a320c1654e6dd46a8da46e6fb3cfec7d45b693
tree0e0470ac4b86d004015b7e31cd0781fb03e9c358
parent3bf7eaef1418f3e34826258fe48f8a855bbb474c
Fix: clean-up sessiond condig structure on initialization error

The sessiond configuration structure's initialization may fail,
leaving some fields allocated and others to NULL. On error, the
structure should be cleaned-up to prevent a leak.

This allows the rest of the code to assume that all configuration
options are not NULL.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/sessiond-config.c
This page took 0.02545 seconds and 4 git commands to generate.