* valops.c (find_overload_match): Call do_cleanups on early exit
path.
* solib.c (solib_find): Call do_cleanups on early exit path.
+2011-06-30 Tom Tromey <tromey@redhat.com>
+
+ * 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.
+
2011-06-30 Tom Tromey <tromey@redhat.com>
* symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
if (remote_filename_p (temp_pathname))
{
*fd = -1;
+ do_cleanups (old_chain);
return temp_pathname;
}
if (*valp)
{
*staticp = 1;
+ do_cleanups (all_cleanups);
return 0;
}
}
return a sensible error. */
if (!gdb_parse_exp_1 (&p, block, 0, &var->root->exp))
{
+ do_cleanups (old_chain);
return NULL;
}