[PATCH, committed] Fortran: fix memory leak with real to integer conversion warning
Harald Anlauf
anlauf@gmx.de
Sat Feb 25 18:17:23 GMT 2023
Dear all,
while checking f951 for memory leaks on testcases that appeared
relevant during work on pr108924, I found that the conversion
warning triggered by do_subscript_6.f90 uses a code path that
forgot to mpfr_clear a used variable.
The attached obvious patch fixes this - verified by valgrind.
Pushed to mainline as r13-6344-g03c60e525bea13 .
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-fix-memory-leak-with-real-to-integer-convers.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20230225/fe5d639e/attachment.bin>
More information about the Fortran
mailing list