Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 24 Feb 2002 07:10:08 +0000 (07:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 24 Feb 2002 07:10:08 +0000 (07:10 +0000)
* elf/dl-close.c (free_slotinfo): Check for end of list and return
true in this case.

ChangeLog
elf/dl-close.c

index 5d02674..383c6a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
 
+       * elf/dl-close.c (free_slotinfo): Check for end of list and return
+       true in this case.
+
        * locale/iso-639.def: Add language codes for Walloon.
 
        * elf/dl-fini.c (_dl_fini): Print some final statistics on the
index 65992d5..9d81ad3 100644 (file)
@@ -386,7 +386,11 @@ free_slotinfo (struct dtv_slotinfo_list *elemp)
 {
   size_t cnt;
 
-  if (elemp->next != NULL && !free_slotinfo (elemp->next))
+  if (elemp == NULL)
+    /* Nothing here, all is removed (or there never was anything).  */
+    return true;
+
+  if (!free_slotinfo (elemp->next))
     /* We cannot free the entry.  */
     return false;