mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00: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)
|
if (imap->l_versions != NULL)
|
||||||
free (imap->l_versions);
|
free (imap->l_versions);
|
||||||
if (imap->l_origin != NULL)
|
if (imap->l_origin != NULL && imap->l_origin != (char *) -1)
|
||||||
free ((char *) imap->l_origin);
|
free ((char *) imap->l_origin);
|
||||||
|
|
||||||
/* This name always is allocated. */
|
/* This name always is allocated. */
|
||||||
|
Loading…
Reference in New Issue
Block a user