Small improvements

This commit is contained in:
2023-01-02 15:43:26 +01:00
parent 6ff6f0c73b
commit a4c0093fbe
3 changed files with 8 additions and 4 deletions

View File

@ -375,6 +375,7 @@ void request_complete(client_ctx_t *ctx) {
ctx->req_e = clock_micros();
info("Transfer complete: %s", format_duration(ctx->req_e - ctx->req_s, buf));
if (ctx->file) fclose(ctx->file);
free(ctx->msg_buf_ptr);
uri_free(&ctx->uri);
http_free_req(&ctx->req);