mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Unlink file on error. Patch by Alexey Tourbin.
This commit is contained in:
parent
0a8b52282c
commit
6bdc34cfbc
@ -230,6 +230,7 @@ save_form_data_to_file(struct uri *uri)
|
|||||||
|
|
||||||
fp = fdopen(fd, "w");
|
fp = fdopen(fd, "w");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
|
unlink(filename);
|
||||||
mem_free(filename);
|
mem_free(filename);
|
||||||
close(fd);
|
close(fd);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user