diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-08 20:05:45 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-08 20:05:45 +0100 |
| commit | d64c4abcf1c1ae78e2613419040675e41a03afb9 (patch) | |
| tree | d70332a04a5d2bee8b739875601e24313be85649 /src | |
| parent | 1829ce1647b6fd5d9a9e320e7c6e3a0cf7095bbd (diff) | |
Silence leak detector. On exit remove the ongoing deflate buffer
Diffstat (limited to 'src')
| -rw-r--r-- | src/ot_fullscrape.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ot_fullscrape.c b/src/ot_fullscrape.c index bbceb0b..0cd1910 100644 --- a/src/ot_fullscrape.c +++ b/src/ot_fullscrape.c | |||
| @@ -220,8 +220,10 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) { | |||
| 220 | memset(&strm, 0, sizeof(strm)); | 220 | memset(&strm, 0, sizeof(strm)); |
| 221 | strm.next_out = (uint8_t *)iovector.iov_base; | 221 | strm.next_out = (uint8_t *)iovector.iov_base; |
| 222 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; | 222 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; |
| 223 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) | 223 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) { |
| 224 | fprintf(stderr, "not ok.\n"); | 224 | free(iovector.iov_base); |
| 225 | return; | ||
| 226 | } | ||
| 225 | 227 | ||
| 226 | if ((mode & TASK_TASK_MASK) == TASK_FULLSCRAPE) { | 228 | if ((mode & TASK_TASK_MASK) == TASK_FULLSCRAPE) { |
| 227 | strm.next_in = (uint8_t *)"d5:filesd"; | 229 | strm.next_in = (uint8_t *)"d5:filesd"; |
