1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Clear initfini list after freeing. Fixes bug 15308.

This commit is contained in:
Ondřej Bílka
2013-10-15 09:45:37 +02:00
parent 1e14558915
commit 4b1a6d8bc9
3 changed files with 12 additions and 6 deletions

View File

@ -286,6 +286,7 @@ libc_freeres_fn (free_mem)
/* Free the initfini dependency list. */
if (l->l_free_initfini)
free (l->l_initfini);
l->l_initfini = NULL;
}
if (__builtin_expect (GL(dl_ns)[ns]._ns_global_scope_alloc, 0) != 0