mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
PR29254, memory leak in stab_demangle_v3_arg
PR 29254 * stabs.c (stab_demangle_v3_arg): Free dt on failure path.
This commit is contained in:
parent
dfea48fc0f
commit
0ebc886149
@ -5467,7 +5467,10 @@ stab_demangle_v3_arg (void *dhandle, struct stab_handle *info,
|
||||
dc->u.s_binary.right,
|
||||
&varargs);
|
||||
if (pargs == NULL)
|
||||
return NULL;
|
||||
{
|
||||
free (dt);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return debug_make_function_type (dhandle, dt, pargs, varargs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user