net_http: fix memleak (#17487)

This commit is contained in:
Eric Warmenhoven 2025-01-29 22:06:59 -05:00 committed by GitHub
parent 97803f5627
commit fd8ba559d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -968,7 +968,6 @@ struct http_t *net_http_new(struct http_connection_t *conn)
state->response.buflen = 16 * 1024;
state->response.data = (char*)malloc(state->response.buflen);
state->response.headers = string_list_new();
string_list_initialize(state->response.headers);
return state;
}