about summary refs log tree commit diff
path: root/nss/getXXbyYY.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/getXXbyYY.c')
-rw-r--r--nss/getXXbyYY.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nss/getXXbyYY.c b/nss/getXXbyYY.c
index 47df15b034..0df916b1ed 100644
--- a/nss/getXXbyYY.c
+++ b/nss/getXXbyYY.c
@@ -117,6 +117,7 @@ FUNCTION_NAME (ADD_PARAMS)
 	     process gets a chance for a normal termination.  */
 	  save = errno;
 	  free (buffer);
+	  buffer = NULL;
 	  __set_errno (save);
 	}
       buffer = new_buf;