Fix memory leak.

This commit is contained in:
Emil Mikulic 2015-05-19 21:17:42 +10:00
parent 6564a65dfa
commit fc8e127bb7
1 changed files with 1 additions and 0 deletions

View File

@ -1837,6 +1837,7 @@ static void process_get(struct connection *conn) {
if (!file_exists(target)) {
free(target);
if (no_listing) {
free(decoded_url);
default_reply(conn, 404, "Not Found",
"The URL you requested (%s) was not found.", conn->url);
return;