aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.c
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-05 08:20:50 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-05 08:20:50 +0200
commit7ed1acafa0b5d135342f9dcc0eb0387dff95005a (patch)
tree060fc562c14273932f8c2ab6bc37b0a029df0528 /gdb/btrace.c
parente13cb306f099a8cd450c9fba0dfa22521aaa3c95 (diff)
downloadgdb-7ed1acafa0b5d135342f9dcc0eb0387dff95005a.zip
gdb-7ed1acafa0b5d135342f9dcc0eb0387dff95005a.tar.gz
gdb-7ed1acafa0b5d135342f9dcc0eb0387dff95005a.tar.bz2
btrace: Fix memory leak in btrace_clear.
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r--gdb/btrace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 3801086..20c977a 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -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);
}