Commit a519fba6 by Jim Blandy Committed by Jim Blandy

cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the string.

* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.

From-SVN: r40744
parent 1eb0b89d
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> 2001-03-21 Zack Weinberg <zackw@stanford.edu>
* make-temp-file.c: Always default DIR_SEPARATOR to '/'. * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
......
...@@ -424,7 +424,7 @@ string_list_delete (node) ...@@ -424,7 +424,7 @@ string_list_delete (node)
while (node != NULL) while (node != NULL)
{ {
string_list_t next = node->next; string_list_t next = node->next;
free (node); dyn_string_delete ((dyn_string_t) node);
node = next; node = next;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment