]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lslogins: comment-in an expensive realloc
authorOndrej Oprala <ooprala@redhat.com>
Wed, 30 Apr 2014 12:46:47 +0000 (14:46 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 15 May 2014 11:56:00 +0000 (13:56 +0200)
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
login-utils/lslogins.c

index 2c2521d2ce9416f1508dfdfb87eff671635e4a9d..c5f1245f85274c4089d46fa8af4e03171c2d0b4b 100644 (file)
@@ -520,7 +520,8 @@ static int get_sgroups(int *len, gid_t **list, struct passwd *pwd)
        }
        (*list)[n] = (*list)[--(*len)];
 
-       *list = xrealloc(*list, *len * sizeof(gid_t));
+       /* probably too costly to do for sizeof(gid_t) worth of memory */
+       //*list = xrealloc(*list, *len * sizeof(gid_t));
 
        return 0;
 }