Add missing cleanup in exec_file_locate_attach
authorGary Benson <gbenson@redhat.com>
Wed, 17 Feb 2016 14:38:36 +0000 (14:38 +0000)
committerGary Benson <gbenson@redhat.com>
Wed, 17 Feb 2016 16:47:11 +0000 (16:47 +0000)
commit88178e828a0d1af133c19d6165e4d5ee59304adf
treee7fad247c76fe4c4f09767b960c07ffbf06b7eb5
parentb3e3e0b7813cda26829ddf73ba3f2d98bb391720
Add missing cleanup in exec_file_locate_attach

exec_file_locate_attach allocates memory for full_exec_path (using
either exec_file_find, source_full_path_of or xstrdup) but this
memory is never freed.  This commit adds the necessary cleanup.

gdb/ChangeLog:

* exec.c (exec_file_locate_attach): Add missing cleanup.
gdb/ChangeLog
gdb/exec.c