aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r--elf/dl-close.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index e89e46d..94978ed 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -148,11 +148,11 @@ _dl_close (struct link_map *map)
lnp = imap->l_libname;
do
{
- free (lnp->name);
+ struct libname_list *this = lnp;
lnp = lnp->next;
+ free (this);
}
while (lnp != NULL);
- free (imap->l_libname);
free (imap);
}