Add missing cleanups to defaulted_query and prompt_for_continue
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:49:31 +0000 (16:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:59:42 +0000 (16:59 +0100)
commit80dbc9fdc7a7929c16f58852e45196a32877b013
treee064b814913a960bc7a1ee3034cc4af6db39eaaa
parentc5ac15402a894e87a118526a066880f596b3c78d
Add missing cleanups to defaulted_query and prompt_for_continue

Some of the error paths in these functions leak.

gdb/ChangeLog:
2016-04-12  Pedro Alves  <palves@redhat.com>

* utils.c (defaulted_query, prompt_for_continue): Free temporary
strings with cleanups, instead of xfree.
gdb/ChangeLog
gdb/utils.c