Replace "if (x) free (x)" with "free (x)", gprof
authorAlan Modra <amodra@gmail.com>
Wed, 20 May 2020 13:19:51 +0000 (22:49 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 21 May 2020 01:15:33 +0000 (10:45 +0930)
commit3d45296946ba5c0ff59c407029bee3f368cace00
treea7193c92b99566a0c9651f57674b7327b0679790
parent9fbb53c7c8d54ec90dc308cfb50902b90900b946
Replace "if (x) free (x)" with "free (x)", gprof

* utils.c (print_name_only): Free demangled without checking
first for non-NULL.
gprof/ChangeLog
gprof/utils.c