diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index 8b425cb7a588..486459af9b16 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -878,10 +878,8 @@ struct http_t *net_http_new(struct http_connection_t *conn) if ((state->data = (char*)malloc(state->buflen))) { - if ((state->headers = string_list_new()) && - string_list_initialize(state->headers)) + if ((state->headers = string_list_new()) != NULL) return state; - string_list_free(state->headers); } free(state); }