fix(handler): print path before free

This commit is contained in:
2026-01-14 02:23:16 +01:00
parent f195bf4202
commit 0c3044d389
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -50,9 +50,8 @@ cws_response_s *cws_handler_static_file(cws_request_s *request, cws_handler_conf
}
cws_response_set_body_file(response, path);
string_free(filepath);
CWS_LOG_DEBUG("Serving file: %s (%zu bytes)", path, response->content_length);
string_free(filepath);
return response;
}