1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

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

This commit is contained in:
Philipp Schafft 2018-05-28 08:47:34 +00:00
parent 9b8ca49f99
commit 819dc9c72e

View File

@ -1191,10 +1191,12 @@ static void _handle_authed_client(client_t *client, void *uri, auth_result resul
/* Dispatch legacy admin.cgi requests */
if (strcmp(uri, "/admin.cgi") == 0) {
_handle_admin_request(client, uri + 1);
free(uri);
return;
} /* Dispatch all admin requests */
else if (strncmp(uri, "/admin/", 7) == 0) {
_handle_admin_request(client, uri + 7);
free(uri);
return;
}