Fix: missing strdup oom check in lttng create.c
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Nov 2014 17:27:29 +0000 (12:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Nov 2014 17:54:17 +0000 (12:54 -0500)
commitc0ea637e572742a05354a367dc37645f3231fb84
tree2141a68f78ee0dacbf95c79c417b2b6bd01399ee
parentfd3d2d34e531922360c240cd989b50bcee5f5287
Fix: missing strdup oom check in lttng create.c

Introduce tmp_path to ensure that no code path can possibly try to free
the return value of utils_get_home_dir(). Re-using alloc_path for both
static and dynamically allocated pointer is error-prone.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/create.c
This page took 0.025501 seconds and 4 git commands to generate.