From 6bdc34cfbcade0c25922c1ad96c753cc7d1c9949 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Mon, 5 Mar 2007 21:24:02 +0100 Subject: [PATCH] Unlink file on error. Patch by Alexey Tourbin. --- src/protocol/user.c | 1 + 1 file changed, 1 insertion(+) 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;