mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
Replace "if (x) free (x)" with "free (x)", gprof
* utils.c (print_name_only): Free demangled without checking first for non-NULL.
This commit is contained in:
@ -85,10 +85,7 @@ print_name_only (Sym *self)
|
||||
printf ("%s", buf);
|
||||
size += strlen (buf);
|
||||
}
|
||||
if (demangled)
|
||||
{
|
||||
free (demangled);
|
||||
}
|
||||
free (demangled);
|
||||
DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order));
|
||||
DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract));
|
||||
}
|
||||
|
Reference in New Issue
Block a user