From: Mathieu Desnoyers Date: Fri, 26 Aug 2011 17:52:32 +0000 (-0400) Subject: Merge branch 'master' of ssh://git.lttng.org/home/git/lttng-tools X-Git-Tag: v2.0-pre13~19^2 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=f8f0c3d1337c4eda5fb76a323ffe6c21c926a21e;hp=00187dd4ee65fc3057ace02f8c954b9b457de6c4 Merge branch 'master' of ssh://git.lttng.org/home/git/lttng-tools --- diff --git a/liblttngctl/lttngctl.c b/liblttngctl/lttngctl.c index b64ace2e6..4b803dc5b 100644 --- a/liblttngctl/lttngctl.c +++ b/liblttngctl/lttngctl.c @@ -152,6 +152,10 @@ static int check_tracing_group(const char *grp_name) /* Alloc group list of the right size */ grp_list = malloc(grp_list_size * sizeof(gid_t)); + if (!grp_list) { + ret = -1; + goto end; + } grp_id = getgroups(grp_list_size, grp_list); if (grp_id < -1) { perror("getgroups");