Fortran: Avoid double-free with parse error (PR96041, PR93423)
authorTobias Burnus <tobias@codesourcery.com>
Thu, 17 Sep 2020 12:01:09 +0000 (14:01 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 17 Sep 2020 12:01:09 +0000 (14:01 +0200)
commitc12facd22881517127ebbe213d7ecc7fc1fcea4e
treed8c15903cdb63512718f5ca1a473c7afcf2ec993
parentc7f4be78cb61006492d16375aba5392f580cd633
Fortran: Avoid double-free with parse error (PR96041, PR93423)

gcc/fortran/

PR fortran/96041
PR fortran/93423
* decl.c (gfc_match_submod_proc): Avoid later double-free
in the error case.
gcc/fortran/decl.c