Skip to contentSkip to conversation

Fix: lttng-relayd: unhandled out of memory error

PATCH Jérémie Galarneau 1 participant 1 message Nov 27, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged in 2.5, 2.6 and master.

Thanks,
Jérémie

Quoted 24 lines · Mathieu Desnoyers
---
 src/bin/lttng-relayd/main.c | 5 +++++
 1 file changed, 5 insertions(+)
src/bin/lttng-relayd/main.c +5 -1
index c9f2021..27a428a 100644
@@ -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':
--

2.1.1

Signature · 8 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev