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.
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 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
__attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
/* Utilities for reading/writing fstab, mtab, etc.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 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
__attribute__ ((unused))
free_mem (void)
{
- if (getmntent_buffer != NULL)
- free (getmntent_buffer);
+ free (getmntent_buffer);
}
text_set_element (__libc_subfreeres, free_mem);
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 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
/*******************************************************************\
|* Here we assume several symbols to be defined: *|
-|* *|
+|* *|
|* LOOKUP_TYPE - the return type of the function *|
-|* *|
+|* *|
|* FUNCTION_NAME - name of the non-reentrant function *|
-|* *|
+|* *|
|* DATABASE_NAME - name of the database the function accesses *|
|* (e.g., host, services, ...) *|
-|* *|
+|* *|
|* ADD_PARAMS - additional parameter, can vary in number *|
-|* *|
+|* *|
|* ADD_VARIABLES - names of additional parameter *|
-|* *|
+|* *|
|* BUFLEN - length of buffer allocated for the non *|
|* reentrant version *|
-|* *|
+|* *|
|* 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. */
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
-/* 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
/*******************************************************************\
|* 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. */
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
-/* Copyright (C) 1991, 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
-/* 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
static void __attribute__ ((unused))
free_mem (void)
{
- if (buffer != NULL)
- free (buffer);
+ free (buffer);
}
text_set_element (__libc_subfreeres, free_mem);
static void
free_mem (void)
{
- if (mount_proc != NULL)
- free (mount_proc);
+ free (mount_proc);
}
text_set_element (__libc_subfreeres, free_mem);