summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
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 35428fcd..56838140 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;