summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 23:55:46 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-11 23:55:46 (GMT)
commit136d24ea1befdaf6dc08e724e82a6c78dc8efda3 (patch)
treec212eb4d896300184bcc02e9bcde44915e6aab6b /addr2line.c
parent336f86f2ee87d95c249dc5a3f19b1c59584246ec (diff)
free line info leaves
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/addr2line.c b/addr2line.c
index c544a2d..5d9cd21 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -1825,6 +1825,14 @@ next_line:
}
free(o);
}
+ for (i = 0; i < num_traces; i++) {
+ line_info_t *line = lines[i].next;
+ while (line) {
+ line_info_t *l = line;
+ line = line->next;
+ free(l);
+ }
+ }
free(lines);
free(dladdr_fbases);
}