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
This commit is contained in:
Jim Blandy 2001-03-22 15:15:18 +00:00 committed by Jim Blandy
parent 1eb0b89d0e
commit a519fba6e8
2 changed files with 7 additions and 1 deletions

View 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 '/'.

View 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;
}
}