Remove NULL checks before xfree
authorTom Tromey <tom@tromey.com>
Sun, 23 Jun 2019 20:28:11 +0000 (14:28 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:51 +0000 (07:48 -0600)
commit17568d782d96434537fe9698c5ebcb09f35c20cb
treee8d70e0771832c06286798701798b44746921b0c
parent53e7cdbaa1d8c0c53038226de07d8160d7f66d82
Remove NULL checks before xfree

A couple of spots in the TUI did a NULL check before an xfree.  This
isn't necessary, and most other cases were removed from gdb a while
ago.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-source.c (tui_set_source_content): Don't check before
xfree.
* tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
gdb/ChangeLog
gdb/tui/tui-disasm.c
gdb/tui/tui-source.c