This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53521] [4.5/4.6/4.7/4.8 Regression] Zero-byte "memory leak" with zero-sized array constructor (valgrind warning)
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 12:46:53 +0000
- Subject: [Bug fortran/53521] [4.5/4.6/4.7/4.8 Regression] Zero-byte "memory leak" with zero-sized array constructor (valgrind warning)
- Auto-submitted: auto-generated
- References: <bug-53521-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53521
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-30 12:46:53 UTC ---
You say not doing free (0) leaks memory? What OS is this on? Note that
we fold such calls away:
case BUILT_IN_FREE:
if (integer_zerop (arg0))
return build_empty_stmt (loc);