cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the...
authorJim Blandy <jimb@redhat.com>
Thu, 22 Mar 2001 15:15:18 +0000 (15:15 +0000)
committerJim Blandy <jimb@gcc.gnu.org>
Thu, 22 Mar 2001 15:15:18 +0000 (15:15 +0000)
* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.

From-SVN: r40744

libiberty/ChangeLog
libiberty/cp-demangle.c

index 3ecdc88d123edb4a8c90cfc8137c3082471ffdce..0e937d2cfb3227804b4640bd1d223715deb923a5 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-22  Jim Blandy  <jimb@redhat.com>
+
+       * cp-demangle.c (string_list_delete): Use dyn_string_delete
+       instead of free, to free the contents as well as the string
+       structure.
+
 2001-03-21  Zack Weinberg  <zackw@stanford.edu>
 
        * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
index e436735c8a551260d21662582ed4aae9b0a1e1f1..b8255b3a26c9e283c95c3d4fb0de9e9e98689d60 100644 (file)
@@ -424,7 +424,7 @@ string_list_delete (node)
   while (node != NULL)
     {
       string_list_t next = node->next;
-      free (node);
+      dyn_string_delete ((dyn_string_t) node);
       node = next;
     }
 }