summaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-30 19:29:54 +0000
committerTom Tromey <tromey@redhat.com>2011-06-30 19:29:54 +0000
commit45b8dae15e0f07a3a14884a9897e95e74da1c9d7 (patch)
tree56705af9674b956cca3b5af19ce930d26d17ad82 /gdb/solib.c
parent9808f28cd4250a5a1736b92cee63973730c252cb (diff)
downloadgdb-45b8dae15e0f07a3a14884a9897e95e74da1c9d7.tar.gz
* varobj.c (varobj_create): Call do_cleanups on early exit path.
* valops.c (find_overload_match): Call do_cleanups on early exit path. * solib.c (solib_find): Call do_cleanups on early exit path.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index a9f46e00099..94f8f13422e 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -254,6 +254,7 @@ solib_find (char *in_pathname, int *fd)
if (remote_filename_p (temp_pathname))
{
*fd = -1;
+ do_cleanups (old_chain);
return temp_pathname;
}