aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-10-21 22:32:23 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-10-26 18:16:31 +0100
commitc9bf4d4354b942af00193924cb59c4c6ab9cc4b5 (patch)
tree1a7a061fe92252fd71adea9385e9ee07749185f0 /gcc/fortran/resolve.c
parent7d37abedf58d664ccb9c06272303a10021ee36a7 (diff)
downloadgcc-c9bf4d4354b942af00193924cb59c4c6ab9cc4b5.zip
gcc-c9bf4d4354b942af00193924cb59c4c6ab9cc4b5.tar.gz
gcc-c9bf4d4354b942af00193924cb59c4c6ab9cc4b5.tar.bz2
c++tools: Fix memory leak
The allocated memory is not freed when returning early due to an error. c++tools/ChangeLog: * resolver.cc (module_resolver::read_tuple_file): Use unique_ptr to ensure memory is freed before returning.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions