summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'download.c')
-rw-r--r--download.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/download.c b/download.c
index 008de02..02625fc 100644
--- a/download.c
+++ b/download.c
@@ -172,8 +172,6 @@ download(struct kreq * r)
end:
if (f != NULL && f->size > 0)
munmap(buffer, f->size);
- if (f != NULL)
- free(f);
-
+ file_free(f);
return ret;
}