diff --git a/gb.net.curl/src/CHttpClient.c b/gb.net.curl/src/CHttpClient.c index a04bfa89b..2d920025e 100644 --- a/gb.net.curl/src/CHttpClient.c +++ b/gb.net.curl/src/CHttpClient.c @@ -151,7 +151,9 @@ static void http_reset(void *_object) GB.FreeString(&THIS->data); GB.Unref(&THIS_HTTP->headers); + THIS_HTTP->headers = NULL; GB.Unref(&THIS_HTTP->sent_headers); + THIS_HTTP->sent_headers = NULL; if (THIS_HTTP->sContentType) {