mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/generic/setenv.c (free_mem): New function. Free all allocated memory.
This commit is contained in:
parent
736dda8c7f
commit
69071b2ab6
|
|
@ -1,5 +1,8 @@
|
||||||
2000-08-31 Ulrich Drepper <drepper@redhat.com>
|
2000-08-31 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/setenv.c (free_mem): New function. Free all
|
||||||
|
allocated memory.
|
||||||
|
|
||||||
* intl/locale.alias: Add aliases for bomal and nynorsk.
|
* intl/locale.alias: Add aliases for bomal and nynorsk.
|
||||||
|
|
||||||
* locale/iso-639.def: Fix 639-1 code for Bokmal.
|
* locale/iso-639.def: Fix 639-1 code for Bokmal.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1992, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
|
/* Copyright (C) 1992, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
@ -313,6 +313,19 @@ clearenv ()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
static void
|
||||||
|
free_mem (void)
|
||||||
|
{
|
||||||
|
/* Remove all traces. */
|
||||||
|
clearenv ();
|
||||||
|
|
||||||
|
/* Now remove the search tree. */
|
||||||
|
__tdestroy (known_values, free);
|
||||||
|
known_values = NULL;
|
||||||
|
}
|
||||||
|
text_set_element (__libc_subfreeres, free_mem);
|
||||||
|
|
||||||
|
|
||||||
# undef setenv
|
# undef setenv
|
||||||
# undef unsetenv
|
# undef unsetenv
|
||||||
# undef clearenv
|
# undef clearenv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue