1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

(_dl_close): Don't free imap->l_origin if it is the special `-1' pointer.

This commit is contained in:
Ulrich Drepper
1998-09-09 13:19:34 +00:00
parent cbf6e15501
commit 1c3a6f19f1

View File

@@ -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. */