summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-10-23 09:01:24 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-10-23 09:01:24 +0200
commit878cd6e8792d5ac03eea59fec9fe8e325440d50c (patch)
tree1d0bcb85c52daba96d1eb41adca28160bb118fa7 /download.c
parent86ba3c3565208414ddad81c088d2db646fd2d4c8 (diff)
file: fix memory leaksHEADmaster
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;
}