about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-08 11:03:35 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-08 11:03:35 +0000
commita7b04831f51fb525ac743b8fc75c132400dc1492 (patch)
tree59466636e38985467a653a2e35d5cdece93af08f /elf
parent3a4fabbd3cb594e1a8ac415421ee34f6abc9ada3 (diff)
downloadglibc-a7b04831f51fb525ac743b8fc75c132400dc1492.tar.gz
glibc-a7b04831f51fb525ac743b8fc75c132400dc1492.tar.xz
glibc-a7b04831f51fb525ac743b8fc75c132400dc1492.zip
Fix one more memory leak.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-close.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index ab650bc748..3b039dcd66 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -124,6 +124,8 @@ _dl_close (struct link_map *map)
 	    }
 	  if (imap->l_next)
 	    imap->l_next->l_prev = imap->l_prev;
+	  if (imap->l_dupsearchlist(
+	    free (imap->l_dupsearchlist);
 	  if (imap->l_searchlist && imap->l_searchlist != list)
 	    free (imap->l_searchlist);
 	  free (imap->l_name);