summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-09 13:19:34 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-09 13:19:34 +0000
commit1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51 (patch)
treebc1ba87a297140a9ba0b7e6e9c6b3cd3e2b54144 /elf
parentcbf6e15501294b037bca811f1512087cbbf92bde (diff)
downloadglibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.tar.gz
glibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.tar.xz
glibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.zip
(_dl_close): Don't free imap->l_origin if it is the special `-1' pointer.
Diffstat (limited to 'elf')
-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 a260539440..3618b13da7 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.  */