diff options
author | Jim Blandy <jimb@redhat.com> | 2001-03-22 15:15:18 +0000 |
---|---|---|
committer | Jim Blandy <jimb@gcc.gnu.org> | 2001-03-22 15:15:18 +0000 |
commit | a519fba6e8e165352aacbda14be1f410e63112bc (patch) | |
tree | bffdc16dd3357d1766da6fb829a585e3ee90e4ed | |
parent | 1eb0b89d0ef0888921e5394699fa25087723f423 (diff) | |
download | gcc-a519fba6e8e165352aacbda14be1f410e63112bc.zip gcc-a519fba6e8e165352aacbda14be1f410e63112bc.tar.gz gcc-a519fba6e8e165352aacbda14be1f410e63112bc.tar.bz2 |
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
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 3ecdc88..0e937d2 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -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 '/'. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index e436735..b8255b3 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; } } |