summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-09-09 16:13:16 -0700
committerJosh Stone <jistone@redhat.com>2009-09-10 13:20:36 -0700
commitc9efa5c99498ccb3d2f0f87bc373da7dfd1cc067 (patch)
tree2d8cf0995d76421ac3fbc08f4ee2c43e0fae639f /tapsets.cxx
parent9aa8ffcea9980d24cc9c9f13d9dd51e46e6283bf (diff)
downloadsystemtap-steved-c9efa5c99498ccb3d2f0f87bc373da7dfd1cc067.tar.gz
systemtap-steved-c9efa5c99498ccb3d2f0f87bc373da7dfd1cc067.tar.xz
systemtap-steved-c9efa5c99498ccb3d2f0f87bc373da7dfd1cc067.zip
Simplify deleting all map values
* util.h (delete_map): New templated map deleter. * dwflpp.cxx (dwflpp::~dwflpp): Use it. * tapsets.cxx (symbol_table::~symbol_table): Use it.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 346fa7f3..fc8cb88b 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -3820,8 +3820,7 @@ dwarf_builder::build(systemtap_session & sess,
symbol_table::~symbol_table()
{
- for (iterator_t i = map_by_addr.begin(); i != map_by_addr.end(); ++i)
- delete i->second;
+ delete_map(map_by_addr);
}
void