1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* 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.
This commit is contained in:
Andreas Jaeger
2000-07-14 07:42:07 +00:00
parent 383b654ba1
commit 6b9fecdc46
8 changed files with 29 additions and 37 deletions

View File

@ -89,7 +89,6 @@ fgetgrent (FILE *stream)
static void __attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -1,4 +1,4 @@
/* 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
@ -56,7 +56,6 @@ static void
__attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -1,5 +1,5 @@
/* 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
@ -60,7 +60,6 @@ static void
__attribute__ ((unused))
free_mem (void)
{
if (getmntent_buffer != NULL)
free (getmntent_buffer);
}

View File

@ -1,4 +1,4 @@
/* 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
@ -164,7 +164,6 @@ done:
static void __attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -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
@ -121,7 +121,6 @@ GETFUNC_NAME (void)
static void __attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -1,4 +1,4 @@
/* 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
@ -89,7 +89,6 @@ fgetpwent (FILE *stream)
static void __attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -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
@ -92,7 +92,6 @@ fgetspent (FILE *stream)
static void __attribute__ ((unused))
free_mem (void)
{
if (buffer != NULL)
free (buffer);
}

View File

@ -283,7 +283,6 @@ weak_alias (__get_avphys_pages, get_avphys_pages)
static void
free_mem (void)
{
if (mount_proc != NULL)
free (mount_proc);
}
text_set_element (__libc_subfreeres, free_mem);