* 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.
This commit is contained in:
Tom Tromey 2011-06-30 19:29:55 +00:00
parent 3bb47e8bce
commit f748fb4088
4 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -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;
}

View File

@ -2585,6 +2585,7 @@ find_overload_match (struct type **arg_types, int nargs,
if (*valp)
{
*staticp = 1;
do_cleanups (all_cleanups);
return 0;
}
}

View File

@ -580,6 +580,7 @@ varobj_create (char *objname,
return a sensible error. */
if (!gdb_parse_exp_1 (&p, block, 0, &var->root->exp))
{
do_cleanups (old_chain);
return NULL;
}