btrace: Fix memory leak in btrace_clear.
This commit is contained in:
parent
e13cb306f0
commit
7ed1acafa0
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user