mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-24 14:53:34 +08:00
PR29262, memory leak in pr_function_type
PR 29262 * prdbg.c (pr_function_type): Free "s" on failure path.
This commit is contained in:
parent
8a24927bc8
commit
0d02e70b19
@ -742,12 +742,9 @@ pr_function_type (void *p, int argcount, bool varargs)
|
|||||||
|
|
||||||
strcat (s, ")");
|
strcat (s, ")");
|
||||||
|
|
||||||
if (! substitute_type (info, s))
|
bool ret = substitute_type (info, s);
|
||||||
return false;
|
|
||||||
|
|
||||||
free (s);
|
free (s);
|
||||||
|
return ret;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Turn the top type on the stack into a reference to that type. */
|
/* Turn the top type on the stack into a reference to that type. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user