aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-03-22 15:16:04 +0000
committerJim Blandy <jimb@codesourcery.com>2001-03-22 15:16:04 +0000
commita88e356aabe2f4c08d3b4a2c0d586fb9269aea21 (patch)
treec500261f33e38dc693452ae6f0d8a8e25f8a8786 /libiberty/cp-demangle.c
parenta2061976f9244eecfd3335c982b2edb3c31e34f6 (diff)
downloadgdb-a88e356aabe2f4c08d3b4a2c0d586fb9269aea21.zip
gdb-a88e356aabe2f4c08d3b4a2c0d586fb9269aea21.tar.gz
gdb-a88e356aabe2f4c08d3b4a2c0d586fb9269aea21.tar.bz2
* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}