From: Mathieu Desnoyers Date: Fri, 21 Nov 2014 17:47:52 +0000 (+0100) Subject: Fix: lttng-relayd: unhandled out of memory error X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=330a40bb375c4f97ccd4ad556907830f878f22cb;p=lttng-tools.git Fix: lttng-relayd: unhandled out of memory error Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 00b8735f2..78974af4c 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -234,6 +234,11 @@ int set_option(int opt, const char *arg, const char *optname) break; case 'g': tracing_group_name = strdup(arg); + if (tracing_group_name == NULL) { + ret = -errno; + PERROR("strdup"); + goto end; + } tracing_group_name_override = 1; break; case 'h':