Commit 819dc9c7 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Fixed memory leak with new way of sending requests to corresponding endpoints

parent 9b8ca49f
Pipeline #166 passed with stage
in 48 seconds
...@@ -1191,10 +1191,12 @@ static void _handle_authed_client(client_t *client, void *uri, auth_result resul ...@@ -1191,10 +1191,12 @@ static void _handle_authed_client(client_t *client, void *uri, auth_result resul
/* Dispatch legacy admin.cgi requests */ /* Dispatch legacy admin.cgi requests */
if (strcmp(uri, "/admin.cgi") == 0) { if (strcmp(uri, "/admin.cgi") == 0) {
_handle_admin_request(client, uri + 1); _handle_admin_request(client, uri + 1);
free(uri);
return; return;
} /* Dispatch all admin requests */ } /* Dispatch all admin requests */
else if (strncmp(uri, "/admin/", 7) == 0) { else if (strncmp(uri, "/admin/", 7) == 0) {
_handle_admin_request(client, uri + 7); _handle_admin_request(client, uri + 7);
free(uri);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment