@cryptotaxi247 / netdata-1 / commits / 95467c3ba

fixed a memory leak introduced with the new API

Costa Tsaousis (ktsaou) committed Nov 30, 2015 at 01:22 UTC 95467c3babc063be2aaa55b57d6cb9b76e040df9
1 file changed +1
src/web_client.c
+1
@@ -210,6 +210,7 @@ struct web_client *web_client_free(struct web_client *w)
210
211 if(w == web_clients) web_clients = w->next;
212
213 + if(w->response.header_output) buffer_free(w->response.header_output);
214 if(w->response.header) buffer_free(w->response.header);
215 if(w->response.data) buffer_free(w->response.data);
216 close(w->ifd);