]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix one more memory leak.
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Oct 1998 11:03:35 +0000 (11:03 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Oct 1998 11:03:35 +0000 (11:03 +0000)
elf/dl-close.c

index ab650bc7485526553fd11c9338bb2b862a6ae550..3b039dcd66e050a48f56b2b089ad47bdb79f6412 100644 (file)
@@ -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);