ruby-changes:52798
From: naruse <ko1@a...>
Date: Fri, 12 Oct 2018 08:55:56 +0900 (JST)
Subject: [ruby-changes:52798] naruse:r65011 (trunk): free line info leaves
naruse 2018-10-12 08:55:46 +0900 (Fri, 12 Oct 2018) New Revision: 65011 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65011 Log: free line info leaves Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 65010) +++ addr2line.c (revision 65011) @@ -1825,6 +1825,14 @@ next_line: https://github.com/ruby/ruby/blob/trunk/addr2line.c#L1825 } 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/