You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
492 B
21 lines
492 B
commit c7edb02d52d048e9e82c0431a3256df3675668ac |
|
Author: Steve Dickson <steved@redhat.com> |
|
Date: Wed Aug 17 14:57:01 2016 -0400 |
|
|
|
Fixed a memory leak nss_name_to_gid() |
|
|
|
Signed-off-by: Steve Dickson <steved@redhat.com> |
|
|
|
diff --git a/nss.c b/nss.c |
|
index 47c6b14..0f12351 100644 |
|
--- a/nss.c |
|
+++ b/nss.c |
|
@@ -242,7 +242,7 @@ static int nss_name_to_gid(char *name, gid_t *gid) |
|
|
|
err = -ENOMEM; |
|
if (buflen > UINT_MAX) |
|
- goto out; |
|
+ goto out_name; |
|
|
|
do { |
|
buf = malloc(buflen);
|
|
|