From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:27:29 +0000 (-0500) Subject: Fix: missing strdup oom check in lttng create.c X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=ab2e5c7c226283aedef88cbc4683c8ad4a7937f2;hp=ab2e5c7c226283aedef88cbc4683c8ad4a7937f2;p=lttng-tools.git 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 Signed-off-by: Jérémie Galarneau ---