X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=8194c3e4bfba9525c878116da96f2928bec2bc9c;hb=37a919e384c4439b1f1ee79cadabd2a11ac4ab1f;hp=8a5cbdfcb550f86a2010586e6eed924d19232861;hpb=98a8c9a336ecff0b494d99efbf94a4c8c85f2772;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index 8a5cbdfcb..8194c3e4b 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -160,6 +160,10 @@ int setup_health_path(void) if (is_root) { rundir = strdup(DEFAULT_LTTNG_RUNDIR); + if (!rundir) { + ret = -ENOMEM; + goto end; + } } else { /* * Create rundir from home path. This will create something like