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.5.3~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=28e9df91c0ebda73a60579b6187bba4c14c92d43;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 832afa585..69131a7bb 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':