[Patch, Fortran, committed] PR53310 - Fix multi-malloc memory leak in EOSHIFT

Tobias Burnus burnus@net-b.de
Fri May 11 08:16:00 GMT 2012


I have committed the attached patch as obvious. libgfortran (since GCC 
4.5) allocates the memory rank()-times instead of only once in eoshift2. 
For the test case of the PR, gfortran leaked 6 MB per call!

Build and regtested on x86-64-linux and comitted as Rev. 187395 to the 
4.8 trunk. I intent to backport the patch, but I have not yet decided 
whether it will be down to 4.5 or not.

Tobias

PS: In the ChangeLog I have converted some spaces into tabs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit.diff
Type: text/x-patch
Size: 4358 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120511/9dd32650/attachment.bin>


More information about the Gcc-patches mailing list