aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 21966bc..6410192 100644
--- a/http.c
+++ b/http.c
@@ -792,7 +792,7 @@ static int write_ctx_free(struct write_ctx *const w)
const struct http_response *const r = &w->r;
if (r->free)
- r->free(r->buf.rw);
+ r->free(r->args ? r->args : r->buf.rw);
if (r->f && (ret = fclose(r->f)))
fprintf(stderr, "%s: fclose(3): %s\n", __func__, strerror(errno));