1
0
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:
Laurent MONIN 2007-03-05 21:24:02 +01:00 committed by Laurent MONIN
parent 0a8b52282c
commit 6bdc34cfbc

View File

@ -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;