diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-09 13:19:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-09 13:19:34 +0000 |
commit | 1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51 (patch) | |
tree | bc1ba87a297140a9ba0b7e6e9c6b3cd3e2b54144 /elf | |
parent | cbf6e15501294b037bca811f1512087cbbf92bde (diff) | |
download | glibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.zip glibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.tar.gz glibc-1c3a6f19f1d2bd5fd3d7edb0e0d2ff621634ca51.tar.bz2 |
(_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.c | 2 |
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. */ |