summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjistone <jistone>2006-05-25 22:13:30 +0000
committerjistone <jistone>2006-05-25 22:13:30 +0000
commit1cde5ba54b676c42e583794ecf75c04e4d20a15b (patch)
treebc89b791f15e5316a3a54c17c46ee947adfaf5cc
parent70c743d89397dddec45a2a21845b48a364631e7e (diff)
downloadsystemtap-steved-1cde5ba54b676c42e583794ecf75c04e4d20a15b.tar.gz
systemtap-steved-1cde5ba54b676c42e583794ecf75c04e4d20a15b.tar.xz
systemtap-steved-1cde5ba54b676c42e583794ecf75c04e4d20a15b.zip
2006-05-25 Josh Stone <joshua.i.stone@intel.com>
* tapsets.cxx (dwarf_var_expanding_copy_visitor::visit_target_symbol): Free allocated memory when supressing target-variable errors
-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;
}