PR c/99055 - memory leak in warn_parm_array_mismatch
authorMartin Sebor <msebor@redhat.com>
Fri, 12 Feb 2021 18:18:17 +0000 (11:18 -0700)
committerMartin Sebor <msebor@redhat.com>
Fri, 12 Feb 2021 18:18:52 +0000 (11:18 -0700)
commitf3d7fd1475eb1ed2b3a39f988b33db176d4f7419
treef74f6efb9920e4f76d0dff24993adf4917e026b8
parent0631e008adc759cc801d0d034224ee6b4bcf31aa
PR c/99055 - memory leak in warn_parm_array_mismatch

gcc/c-family/ChangeLog:

PR c/99055
* c-warn.c (warn_parm_array_mismatch): Free strings returned from
print_generic_expr_to_str.

gcc/ChangeLog:

* tree-pretty-print.c (print_generic_expr_to_str): Update comment.
gcc/c-family/c-warn.c
gcc/tree-pretty-print.c