Merge branch 'master' of git://git.lttng.org/lttng-tools
authorDavid Goulet <david.goulet@polymtl.ca>
Fri, 26 Aug 2011 20:20:03 +0000 (16:20 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Fri, 26 Aug 2011 20:20:03 +0000 (16:20 -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.025453 seconds and 4 git commands to generate.