summaryrefslogtreecommitdiff
path: root/nss/getXXent.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-07-14 07:42:07 +0000
committerAndreas Jaeger <aj@suse.de>2000-07-14 07:42:07 +0000
commit6b9fecdc46b9a4df5a73735ce80b5bca3cc2baa9 (patch)
tree97dc488a16352a613756b4934c1cedf3443eb85b /nss/getXXent.c
parent383b654ba194c7a2e1caafa06b0be9e7301aa206 (diff)
downloadglibc-6b9fecdc46b9a4df5a73735ce80b5bca3cc2baa9.tar.gz
* sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
patch. * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid. * inet/getnetgrent.c (free_mem): Likewise. * misc/mntent.c (free_mem): Likewise. * nss/getXXbyYY.c (free_mem): Likewise. * nss/getXXent.c (free_mem): Likewise. * pwd/fgetpwent.c (free_mem): Likewise. * shadow/fgetspent.c (free_mem): Likewise.
Diffstat (limited to 'nss/getXXent.c')
-rw-r--r--nss/getXXent.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/nss/getXXent.c b/nss/getXXent.c
index 497c0dee22..d2482157ff 100644
--- a/nss/getXXent.c
+++ b/nss/getXXent.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,18 +24,18 @@
/*******************************************************************\
|* Here we assume several symbols to be defined: *|
-|* *|
+|* *|
|* LOOKUP_TYPE - the return type of the function *|
-|* *|
+|* *|
|* GETFUNC_NAME - name of the non-reentrant getXXXent function *|
-|* *|
+|* *|
|* BUFLEN - size of static buffer *|
-|* *|
+|* *|
|* Optionally the following vars can be defined: *|
-|* *|
+|* *|
|* NEED_H_ERRNO - an extra parameter will be passed to point to *|
|* the global `h_errno' variable. *|
-|* *|
+|* *|
\*******************************************************************/
/* To make the real sources a bit prettier. */
@@ -121,8 +121,7 @@ GETFUNC_NAME (void)
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);