commit 987dbf4: [Minor] Plug leak
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jun 26 11:42:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-26 12:41:08 +0100
URL: https://github.com/rspamd/rspamd/commit/987dbf44877c634fb242f00fe8e7d096b7a889af (HEAD -> master)
[Minor] Plug leak
---
src/libserver/cfg_rcl.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index db1b54cf8..0a40cdd72 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -987,6 +987,8 @@ rspamd_rcl_modules_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
TRUE,
mods_seen,
err)) {
+ g_hash_table_unref (mods_seen);
+
return FALSE;
}
}
@@ -997,6 +999,8 @@ rspamd_rcl_modules_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
CFG_RCL_ERROR,
EINVAL,
"path attribute is missing");
+ g_hash_table_unref (mods_seen);
+
return FALSE;
}
@@ -1010,6 +1014,8 @@ rspamd_rcl_modules_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
FALSE,
mods_seen,
err)) {
+ g_hash_table_unref (mods_seen);
+
return FALSE;
}
}
@@ -1026,11 +1032,15 @@ rspamd_rcl_modules_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
FALSE,
mods_seen,
err)) {
+ g_hash_table_unref (mods_seen);
+
return FALSE;
}
}
}
}
+
+ g_hash_table_unref (mods_seen);
}
else if (ucl_object_tostring_safe (obj, &data)) {
if (!rspamd_rcl_add_lua_plugins_path (cfg,
More information about the Commits
mailing list