From 437d0e4fe7c2388753f01eab3c75ee01422ea9ea Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Sep 2016 12:09:40 +0100 Subject: [PATCH] [Minor] Fix zctx freeing --- src/client/rspamdclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c index d0b315108..4691ce5ec 100644 --- a/src/client/rspamdclient.c +++ b/src/client/rspamdclient.c @@ -390,11 +390,12 @@ rspamd_client_command (struct rspamd_client_connection *conn, return FALSE; } + + ZSTD_freeCCtx (zctx); } rspamd_http_message_set_body_from_fstring_steal (req->msg, body); req->input = input; - ZSTD_freeCCtx (zctx); } else { req->input = NULL; -- 2.39.5