From: Vsevolod Stakhov Date: Wed, 1 Apr 2015 15:39:39 +0000 (+0100) Subject: Memory leak. X-Git-Tag: 0.9.0~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b37eba798e5fb6d30ff10d5c449e3d1051cddcc7;p=thirdparty%2Frspamd.git Memory leak. --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 802aa9e7f5..1a5bc78408 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1191,6 +1191,8 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, priv->wr_total -= 2; } if (msg->body != NULL) { + msg->body_buf.str = msg->body->str; + if (encrypted && peer_key != NULL && np != NULL && mp != NULL) { if (conn->cache) { rspamd_cryptobox_encrypt_nm_inplace (pbody,