summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorTim Moore <moore@blackbox.bricoworks.com>2008-06-29 23:04:31 +0200
committerTim Moore <moore@blackbox.bricoworks.com>2008-06-29 23:53:14 +0200
commit558982c5ade8ae35156d8e6d05e117d49bfa6d45 (patch)
tree888a5004de5c0598d46e819faca75532585bef6e /tapsets.cxx
parentcfa2ca3cbf2da7bbabcdf35c3085a969bd2370e4 (diff)
downloadsystemtap-steved-558982c5ade8ae35156d8e6d05e117d49bfa6d45.tar.gz
systemtap-steved-558982c5ade8ae35156d8e6d05e117d49bfa6d45.tar.xz
systemtap-steved-558982c5ade8ae35156d8e6d05e117d49bfa6d45.zip
Add auto_free_ref to auto_free stuff; bug 6694
Also add auto_free.h to EXTRA_DIST.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index a405cef0..c054d24c 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1184,7 +1184,8 @@ struct dwflpp
size_t nsrcs = 0;
dwarf_query * q = static_cast<dwarf_query *>(data);
int lineno = lines[0];
-
+ auto_free_ref<Dwarf_Line**> free_srcsp(srcsp);
+
get_module_dwarf();
if (line_type == RELATIVE)
@@ -1210,7 +1211,6 @@ struct dwflpp
dwarf_getsrc_file (module_dwarf,
srcfile, l, 0,
&srcsp, &nsrcs));
- auto_free srcsp_af(srcsp);
if (line_type == WILDCARD || line_type == RANGE)
{
Dwarf_Addr line_addr;