fix latent bugs in ui-out.c
authorTom Tromey <tromey@redhat.com>
Mon, 17 Mar 2014 19:02:13 +0000 (19:02 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 17 Mar 2014 19:02:13 +0000 (19:02 +0000)
commit9c1fcd01cf4f222b7065af353cedc3f9701c739c
treecb364f30535f0a492c3155874076c11087648e91
parentc712f1e3f711d0f3b694cdfcf4a965d8419fde94
fix latent bugs in ui-out.c

The destructor code in ui-out.c has a latent bug, which is hidden by
the fact that nothing uses this right now.  This patch fixes the
problem.  The bug is that we don't always clear a pointer in the
ui-out object, leading to a bad free.

2014-03-17  Tom Tromey  <tromey@redhat.com>

* ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
gdb/ChangeLog
gdb/ui-out.c
This page took 0.026327 seconds and 4 git commands to generate.