[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] fix memory leaks when writing out new files
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] fix memory leaks when writing out new files |
Date: |
Fri, 15 Jan 2016 14:32:32 +0100 |
On Thu, Jan 14, 2016, at 23:50, Mike Frysinger wrote:
> + free(full_filename);
> full_filename = mallocstrcpy(NULL, filename);
Those two lines can be written more shortly as:
full_filename = mallocstrcpy(full_filename, filename);
It's less clear, but I've done it anyway.
Applied to SVN, r5563. Thanks.
And another leak in set_modified() was fixed in r5564.
Benno
--
http://www.fastmail.com - Access your email from home and the web