From: Mathieu Desnoyers Date: Fri, 21 Nov 2014 17:47:52 +0000 (+0100) Subject: Fix: lttng-relayd: unhandled out of memory error X-Git-Tag: v2.6.0-rc4~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46cd21298f7552b3df08c5020445a17a04957718;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 1b3dcc9b5..4c871d879 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -233,6 +233,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':