From 45a4f21d5f5d3f77706185cc9306635ef7480ee0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 13 Aug 2018 10:17:38 +0500 Subject: fixes #639 Memory leak in http client --- src/supplemental/http/http_client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/supplemental/http/http_client.c b/src/supplemental/http/http_client.c index 6842b271..da4ae5c8 100644 --- a/src/supplemental/http/http_client.c +++ b/src/supplemental/http/http_client.c @@ -117,6 +117,9 @@ nni_http_client_fini(nni_http_client *c) nni_tls_config_fini(c->tls); } #endif + nni_strfree(c->host); + nni_strfree(c->port); + NNI_FREE_STRUCT(c); } -- cgit v1.2.3-70-g09d2