mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -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");
|
||||
if (!fp) {
|
||||
unlink(filename);
|
||||
mem_free(filename);
|
||||
close(fd);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user