commit bc23d66: [Minor] Plug memory leak in arc seal verify
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jan 7 16:00:06 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-01-07 15:56:37 +0000
URL: https://github.com/rspamd/rspamd/commit/bc23d662720ce7e8cf517da75b2655becdb81272 (HEAD -> master)
[Minor] Plug memory leak in arc seal verify
---
src/libserver/dkim.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index f6274a3d6..faa4a78f4 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -783,6 +783,10 @@ rspamd_dkim_add_arc_seal_headers (rspamd_mempool_t *pool,
g_ptr_array_add (ctx->hlist, hdr);
}
}
+
+ rspamd_mempool_add_destructor (ctx->pool,
+ (rspamd_mempool_destruct_t)rspamd_dkim_hlist_free,
+ ctx->hlist);
}
/**
More information about the Commits
mailing list