about summary refs log tree commit diff
path: root/elf/dl-libc.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2013-10-15 09:45:37 +0200
committerOndřej Bílka <neleai@seznam.cz>2013-10-15 09:47:33 +0200
commit4b1a6d8bc9cf568f053a66375945bcadb19eef8b (patch)
tree1b4da6799a7be267f93aa21c37999cbaa6246e77 /elf/dl-libc.c
parent1e14558915352b8324428be4e735df484861b3c6 (diff)
downloadglibc-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.c1
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