]> git.wh0rd.org Git - nano.git/commit
Freeing the full filename in all cases.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 15 Jan 2016 13:17:44 +0000 (13:17 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 15 Jan 2016 13:17:44 +0000 (13:17 +0000)
commit0ee7729666b865a3768804b40a42df8444b63611
treeb7dd88ecec544c311d554d829ff58c71f8e41912
parent63370954bd79d1d24f4060f1eeb2e383dbc3d040
Freeing the full filename in all cases.

There's a bunch of return cases where we don't free the new full filename
which leads to leaks when writing out new files.  One way to reproduce:
$ rm -f foo
$ nano foo
<hit enter>
<ctrl+o to save>
<ctrl+x to exit>
-> memory leak

Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
ChangeLog
src/files.c