diff options
-rw-r--r-- | src/web_client.c | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | system/netdata-init-d.in | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | system/netdata-lsb.in | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | system/netdata-openrc.in | 0 |
4 files changed, 6 insertions, 0 deletions
diff --git a/src/web_client.c b/src/web_client.c index b4e07ff48e..a6831870d8 100644 --- a/src/web_client.c +++ b/src/web_client.c @@ -240,6 +240,12 @@ struct web_client *web_client_free(struct web_client *w) debug(D_WEB_CLIENT_ACCESS, "%llu: Closing web client from %s port %s.", w->id, w->client_ip, w->client_port); +#ifdef NETDATA_WITH_ZLIB + if(w->response.zinitialized) { + deflateEnd(&w->response.zstream); + } +#endif // NETDATA_WITH_ZLIB + if(w->prev) w->prev->next = w->next; if(w->next) w->next->prev = w->prev; if(w->response.header_output) buffer_free(w->response.header_output); diff --git a/system/netdata-init-d.in b/system/netdata-init-d.in index d72dd2e56b..d72dd2e56b 100755..100644 --- a/system/netdata-init-d.in +++ b/system/netdata-init-d.in diff --git a/system/netdata-lsb.in b/system/netdata-lsb.in index d81659775b..d81659775b 100755..100644 --- a/system/netdata-lsb.in +++ b/system/netdata-lsb.in diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in index 3d5f2cdcc5..3d5f2cdcc5 100755..100644 --- a/system/netdata-openrc.in +++ b/system/netdata-openrc.in |