btrace, linux: fix memory leak when reading branch trace
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 3 Jun 2013 12:32:15 +0000 (14:32 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 16 Jan 2014 11:45:10 +0000 (12:45 +0100)
commited9edfb5d5edb1dd0b6280ae4acdd9963a12ebe6
treed7c2c9e35fb95685b81b19c4ac7826ce6183ac48
parent724c7dd8a4520d4020883b4ae3a3f2fa489acb1a
btrace, linux: fix memory leak when reading branch trace

When it takes more than one iteration to read the BTS trace, the trace from the
previous iteration is leaked.  Fix it.

2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>

* common/linux-btrace.c (linux_read_btrace): Free trace from
previous iteration.
gdb/ChangeLog
gdb/common/linux-btrace.c
This page took 0.03545 seconds and 4 git commands to generate.