From 4b1a6d8bc9cf568f053a66375945bcadb19eef8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20B=C3=ADlka?= Date: Tue, 15 Oct 2013 09:45:37 +0200 Subject: Clear initfini list after freeing. Fixes bug 15308. --- elf/dl-libc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'elf') diff --git a/elf/dl-libc.c b/elf/dl-libc.c index aba0d1a..397d898 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 -- cgit v1.1