]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix zctx freeing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Sep 2016 11:09:40 +0000 (12:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Sep 2016 11:09:40 +0000 (12:09 +0100)
src/client/rspamdclient.c

index d0b3151085eb35677cca6e8b234d062fd8236dc7..4691ce5ec5e8a599b8607addacc90a338ccec084 100644 (file)
@@ -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;