commit 5288d2b: [Minor] Another leak plugged

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jul 16 17:49:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-16 18:46:49 +0100
URL: https://github.com/rspamd/rspamd/commit/5288d2b722a9e5c14658a84dccc18e7c1a8c21b5 (HEAD -> master)

[Minor] Another leak plugged

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

diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index 4aff94a38..99f0f9948 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -241,6 +241,7 @@ rspamd_worker_signal_handle (EV_P_ ev_signal *w, int revents)
 	DL_FOREACH_SAFE (sigh->cb, cb, cbtmp) {
 		if (!cb->handler (sigh, cb->handler_data)) {
 			DL_DELETE (sigh->cb, cb);
+			g_free (cb);
 		}
 	}
 }


More information about the Commits mailing list