This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/85840] Memory leak in write.c


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]