commit 7495b25: [Fix] Fix events leak

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Sep 18 11:21:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-18 12:18:09 +0100
URL: https://github.com/rspamd/rspamd/commit/7495b2553520b2bc2ea5fe6f8c0888cf2595d65f

[Fix] Fix events leak

---
 src/fuzzy_storage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 257c9893b..9e98f3df1 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -518,6 +518,7 @@ rspamd_fuzzy_reply_io (EV_P_ ev_io *w, int revents)
 	struct fuzzy_session *session = (struct fuzzy_session *)w->data;
 
 	rspamd_fuzzy_write_reply (session);
+	ev_io_stop (EV_A_ w);
 	REF_RELEASE (session);
 }
 


More information about the Commits mailing list