mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-26 17:03:28 +08:00
fix cp-namespace.c
cp_lookup_symbol_imports_or_template could return without running cleanups. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call do_cleanups on all return paths.
This commit is contained in:
@ -499,7 +499,10 @@ cp_lookup_symbol_imports_or_template (const char *scope,
|
||||
TYPE_N_TEMPLATE_ARGUMENTS (context),
|
||||
TYPE_TEMPLATE_ARGUMENTS (context));
|
||||
if (result != NULL)
|
||||
return result;
|
||||
{
|
||||
do_cleanups (cleanups);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
do_cleanups (cleanups);
|
||||
|
Reference in New Issue
Block a user