commit 0363056: [Minor] Plug dtor memory leak (not important)

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Sep 1 13:56:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-09-01 14:52:57 +0100
URL: https://github.com/rspamd/rspamd/commit/03630564dc8139b66a54f4e353ca1b92a5a8f40f (HEAD -> master)

[Minor] Plug dtor memory leak (not important)

---
 src/libserver/maps/map_helpers.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c
index c2bfe1292..f98e4dafc 100644
--- a/src/libserver/maps/map_helpers.c
+++ b/src/libserver/maps/map_helpers.c
@@ -1095,6 +1095,8 @@ rspamd_re_maps_cache_cleanup_dtor (gpointer ud)
 
 			g_free (basename);
 		}
+
+		g_ptr_array_free (cache_files, TRUE);
 	}
 
 	g_hash_table_unref (cbd->valid_re_hashes);


More information about the Commits mailing list