mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(_dl_close): Don't free imap->l_origin if it is the special `-1' pointer.
This commit is contained in:
parent
cbf6e15501
commit
1c3a6f19f1
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user