Skip to content

Commit

Permalink
http_microhttpd: fix a memoryleak in the template generation (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxis authored and mwarning committed Jul 31, 2019
1 parent afd3404 commit 6b3b8b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http_microhttpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ static int show_templated_page(struct MHD_Connection *connection, t_client *clie
ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
MHD_destroy_response(response);

free(page_tmpl);
close(page_fd);

return ret;
Expand Down

0 comments on commit 6b3b8b8

Please sign in to comment.