aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index a260539..3618b13 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -140,7 +140,7 @@ _dl_close (struct link_map *map)
if (imap->l_versions != NULL)
free (imap->l_versions);
- if (imap->l_origin != NULL)
+ if (imap->l_origin != NULL && imap->l_origin != (char *) -1)
free ((char *) imap->l_origin);
/* This name always is allocated. */