From: Jim Blandy Date: Thu, 22 Mar 2001 15:15:18 +0000 (+0000) Subject: cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a519fba6e8e165352aacbda14be1f410e63112bc;p=gcc.git 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 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 3ecdc88d123..0e937d2cfb3 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2001-03-22 Jim Blandy + + * 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 * make-temp-file.c: Always default DIR_SEPARATOR to '/'. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index e436735c8a5..b8255b3a26c 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -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; } }