File idmap-0006-Fixed-a-memory-leak-nss_name_to_gid.patch of Package nfs-utils.35068

From c7edb02d52d048e9e82c0431a3256df3675668ac Mon Sep 17 00:00:00 2001
From: Steve Dickson <steved@redhat.com>
Date: Wed, 17 Aug 2016 14:57:01 -0400
Subject: [PATCH] Fixed a memory leak nss_name_to_gid()

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 nss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/nss.c
+++ b/nss.c
@@ -318,7 +318,7 @@ static int _nss_name_to_gid(char *name,
 
 	err = -ENOMEM;
 	if (buflen < 0)
-		goto out;
+		goto out_name;
 
 	do {
 		buf = malloc(buflen);
openSUSE Build Service is sponsored by