diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-05 08:14:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-05 08:14:59 +0100 |
commit | fdb3dc56bb52bc6823fdd40914a03e5f60d60f9e (patch) | |
tree | d6cde010bafedb21a356a6482ea17cb2225dadc9 /src/libserver | |
parent | a0a5b90f06b915ac5a123ecf219a688e2ce0df49 (diff) | |
download | rspamd-fdb3dc56bb52bc6823fdd40914a03e5f60d60f9e.tar.gz rspamd-fdb3dc56bb52bc6823fdd40914a03e5f60d60f9e.zip |
[Fix] Plug memory leak
Issue: #1697
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/milter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index c547f7ea9..dad7c5afa 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -163,6 +163,7 @@ rspamd_milter_session_dtor (struct rspamd_milter_session *session) if (session) { priv = session->priv; + msg_debug_milter ("destroying milter session"); if (event_get_base (&priv->ev)) { event_del (&priv->ev); @@ -635,7 +636,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, version, actions, protocol); break; case RSPAMD_MILTER_CMD_QUIT: - msg_debug_milter ("quit command"); + msg_debug_milter ("quit command, refcount: %d", session->ref.refcount); priv->state = RSPAMD_MILTER_WANNA_DIE; REF_RETAIN (session); priv->fin_cb (priv->fd, session, priv->ud); |