This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/85840] Memory leak in write.c
- From: "jjcogliati-r1 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 May 2018 14:28:01 +0000
- Subject: [Bug fortran/85840] Memory leak in write.c
- Auto-submitted: auto-generated
- References: <bug-85840-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85840
--- Comment #8 from Joshua Cogliati <jjcogliati-r1 at yahoo dot com> ---
Created attachment 44186
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44186&action=edit
Patch by keeping original length
This patches the problem by storing the allocated length in a separate
variable.
This also fixes the problem with the free not being called.
Both these patches are against svn 260704.