aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-12 23:08:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-12 23:08:17 +0000
commit59351eb72ce4ce607a3ae2762a0101650244eab9 (patch)
tree7d97b2df9ad940df49fcafe601a9bb4846b65f1a /src/libserver/protocol.c
parent681417893d0f859d99690055143364898bfe880f (diff)
downloadrspamd-59351eb72ce4ce607a3ae2762a0101650244eab9.tar.gz
rspamd-59351eb72ce4ce607a3ae2762a0101650244eab9.zip
[CritFix] Plug memory leak in zstd protocol compression
MFH: rspamd-1.6
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index a6e7a7c54..bcecceadd 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -1334,6 +1334,7 @@ rspamd_protocol_http_reply (struct rspamd_http_message *msg,
}
}
+ ZSTD_flushStream (zstream, &zout);
r = ZSTD_endStream (zstream, &zout);
if (ZSTD_isError (r)) {