Merge branch 'master' of ssh://git.lttng.org/home/git/lttng-tools
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 17:52:32 +0000 (13:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 17:52:32 +0000 (13:52 -0400)
liblttngctl/lttngctl.c

index b64ace2e6d80de0ce085791f698604e53f8eb523..4b803dc5b06e4ee76a56caf388d6af3b7911cd18 100644 (file)
@@ -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");
This page took 0.025192 seconds and 4 git commands to generate.