Fix memory leak.
This commit is contained in:
parent
6564a65dfa
commit
fc8e127bb7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue