]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_close): Don't free imap->l_origin if it is the special `-1' pointer.
authorUlrich Drepper <drepper@redhat.com>
Wed, 9 Sep 1998 13:19:34 +0000 (13:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 9 Sep 1998 13:19:34 +0000 (13:19 +0000)
elf/dl-close.c

index a2605394405079e71631be5fb802a6a17768cf7a..3618b13da7b7b45952bcd9667965c15ebcc9249c 100644 (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.  */