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

@ -1,3 +1,7 @@
2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
* btrace.c (btrace_clear): Free insn vector.
2017-05-05 Pedro Alves <palves@redhat.com>
* warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.

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);
}