diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-04-01 15:22:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 15:22:49 +0200 |
commit | 7bfc543172115ee8c042f605c3af1432c43d1b07 (patch) | |
tree | ee0bce08b5526aae8dc13f737eddfe7696f26a61 /streaming | |
parent | 6ba6d670172ab4387ff722348f61c8268c410ed6 (diff) |
Fix memory leaks on Netdata exit (#12511)
* Fix memory leaks in dimensions and charts
* Initialize superblock memory regions
* Clean up static threads
* Fix memory leaks in compression
* Fix memory leaks in rrdcaltemplate
* Fix memory leaks in health config
* Fix ACLK memory leaks
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/compression.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/streaming/compression.c b/streaming/compression.c index 8856590c27..d6178d6c34 100644 --- a/streaming/compression.c +++ b/streaming/compression.c @@ -48,6 +48,7 @@ static void lz4_compressor_destroy(struct compressor_state **state) if (s->data->stream) LZ4_freeStream(s->data->stream); freez(s->data->stream_buffer); + freez(s->data); } freez(s->buffer); freez(s); @@ -156,6 +157,7 @@ static void lz4_decompressor_destroy(struct decompressor_state **state) if (s->data->stream) LZ4_freeStreamDecode(s->data->stream); freez(s->data->stream_buffer); + freez(s->data); } freez(s->buffer); freez(s); |