mirror of
git://git.sv.gnu.org/nano.git
synced 2025-04-02 19:13:11 +03:00
write_file(): Don't free() realname on write error
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
76745fbe5f
commit
0fc2b81df8
@ -1,4 +1,9 @@
|
|||||||
CVS code -
|
CVS code -
|
||||||
|
- files.c:
|
||||||
|
write_file()
|
||||||
|
- Don't free() realname on error, if it needs to be free()d later
|
||||||
|
it will be (fixes crash on successful write after failed write,
|
||||||
|
discovered by David Sobon).
|
||||||
|
|
||||||
nano 0.9.99-pre1 - 01/17/2001
|
nano 0.9.99-pre1 - 01/17/2001
|
||||||
General
|
General
|
||||||
|
1
files.c
1
files.c
@ -378,7 +378,6 @@ int write_file(char *name, int tmp)
|
|||||||
}
|
}
|
||||||
statusbar(_("Could not open file for writing: %s"),
|
statusbar(_("Could not open file for writing: %s"),
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
free(realname);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user