btrace: Fix memory leak in btrace_clear.

This commit is contained in:
Tim Wiederhake
2017-05-05 08:20:50 +02:00
parent e13cb306f0
commit 7ed1acafa0
2 changed files with 5 additions and 0 deletions

View File

@@ -1893,6 +1893,7 @@ btrace_clear (struct thread_info *tp)
trash = it;
it = it->flow.next;
VEC_free (btrace_insn_s, trash->insn);
xfree (trash);
}