diff options
author | Ondřej Bílka <neleai@seznam.cz> | 2013-10-15 09:45:37 +0200 |
---|---|---|
committer | Ondřej Bílka <neleai@seznam.cz> | 2013-10-15 09:47:33 +0200 |
commit | 4b1a6d8bc9cf568f053a66375945bcadb19eef8b (patch) | |
tree | 1b4da6799a7be267f93aa21c37999cbaa6246e77 /elf/dl-libc.c | |
parent | 1e14558915352b8324428be4e735df484861b3c6 (diff) | |
download | glibc-4b1a6d8bc9cf568f053a66375945bcadb19eef8b.tar.gz glibc-4b1a6d8bc9cf568f053a66375945bcadb19eef8b.tar.xz glibc-4b1a6d8bc9cf568f053a66375945bcadb19eef8b.zip |
Clear initfini list after freeing. Fixes bug 15308.
Diffstat (limited to 'elf/dl-libc.c')
-rw-r--r-- | elf/dl-libc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-libc.c b/elf/dl-libc.c index aba0d1af19..397d898993 100644 --- a/elf/dl-libc.c +++ b/elf/dl-libc.c @@ -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 |