[Patch, Fortran] ANother two memory leaks plugged

Tobias Burnus burnus@net-b.de
Tue Aug 28 14:50:00 GMT 2012


First, I have now regtested and committed the show_locus bug fix as Rev. 
190752.
Cf. http://gcc.gnu.org/ml/fortran/2012-08/msg00197.html

Secondly, the attached patch fixes two valgrind-reported memory issues 
when compiling the Polyhedron 2005 files:

a) decl.c: DATA statement's value matching. Here, one calls 
gfc_match_rvalue, but if one doesn't have a structure constructor, one 
ignores the result and continues by trying to match other kinds of 
expressions, without freeing the previous result.

b) When resolving DATA, temporary variables weren't released.

Build and regtested on x86-64-linux.
Committed as Rev. 190751.

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 2550 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120828/519bc3b7/attachment.bin>


More information about the Fortran mailing list