gdbserver: QTNotes, plug memory leak.
authorPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 18:07:19 +0000 (18:07 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 14 Feb 2013 18:07:19 +0000 (18:07 +0000)
commit8e1d55a3dfe0d11fcc0921d97a80dc280a1af06b
treeaa2125e6acd21b945893e64767ac0cc4dc627153
parent458820da59b112e977d02e66163fb706a874f721
gdbserver: QTNotes, plug memory leak.

The previous notes aren't being released before setting new ones.

Tested on x86_64 Fedora 17.

gdb/gdbserver/
2013-02-14  Pedro Alves  <palves@redhat.com>

Plug memory leak.

* tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c