diff --git a/src/protocol/user.c b/src/protocol/user.c index 40d53a7eb..4188d663d 100644 --- a/src/protocol/user.c +++ b/src/protocol/user.c @@ -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;