summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--tapsets.cxx2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e3b95c90..1e83c27a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
* parse.cxx (parser::scan_pp): Free memory for tokens that are
thrown away in the preprocessing stage.
+ * tapsets.cxx
+ (dwarf_var_expanding_copy_visitor::visit_target_symbol):
+ Free allocated memory when supressing target-variable errors
2006-05-25 David Smith <dsmith@redhat.com>
diff --git a/tapsets.cxx b/tapsets.cxx
index a653c490..3ca145eb 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2672,6 +2672,8 @@ dwarf_var_expanding_copy_visitor::visit_target_symbol (target_symbol *e)
// up not being referenced after all, so it can be optimized out
// quietly.
provide <target_symbol*> (this, e);
+ delete fdecl;
+ delete ec;
return;
}