summaryrefslogtreecommitdiff
path: root/libc/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/elf/rtld.c')
-rw-r--r--libc/elf/rtld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/elf/rtld.c b/libc/elf/rtld.c
index b93a01f72..5c39794bf 100644
--- a/libc/elf/rtld.c
+++ b/libc/elf/rtld.c
@@ -2277,6 +2277,8 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
lnp->dont_free = 1;
lnp = lnp->next;
}
+ /* Also allocated with the fake malloc(). */
+ l->l_free_initfini = 0;
if (l != &GL(dl_rtld_map))
_dl_relocate_object (l, l->l_scope, GLRO(dl_lazy) ? RTLD_LAZY : 0,