Fix: lttng-relayd: unhandled out of memory error
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Nov 2014 17:47:52 +0000 (18:47 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Nov 2014 16:33:30 +0000 (11:33 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index 00b8735f2ca3c37e6df9de649bf2098d6d712960..78974af4c545f417e748efc9dc265b2ec197522d 100644 (file)
@@ -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':
This page took 0.02795 seconds and 4 git commands to generate.