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:
parent
9fbb53c7c8
commit
3d45296946
@ -1,3 +1,8 @@
|
|||||||
|
2020-05-21 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* utils.c (print_name_only): Free demangled without checking
|
||||||
|
first for non-NULL.
|
||||||
|
|
||||||
2020-05-18 Nick Clifton <nickc@redhat.com>
|
2020-05-18 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/es.po: Update Spanish translation.
|
* po/es.po: Update Spanish translation.
|
||||||
|
@ -85,10 +85,7 @@ print_name_only (Sym *self)
|
|||||||
printf ("%s", buf);
|
printf ("%s", buf);
|
||||||
size += strlen (buf);
|
size += strlen (buf);
|
||||||
}
|
}
|
||||||
if (demangled)
|
free (demangled);
|
||||||
{
|
|
||||||
free (demangled);
|
|
||||||
}
|
|
||||||
DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order));
|
DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order));
|
||||||
DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract));
|
DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user