]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Plug memory leak
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Jan 2017 17:57:59 +0000 (17:57 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Jan 2017 17:58:33 +0000 (17:58 +0000)
MFH: true

contrib/libucl/lua_ucl.c

index bf80810d3e0736ba436da7fd3eef62c19113b84b..c4bf1cbe9db1f240ece7c620df9240d4d6a9d826 100644 (file)
@@ -187,6 +187,8 @@ ucl_object_lua_push_array (lua_State *L, const ucl_object_t *obj)
                        lua_rawseti (L, -2, i);
                        i ++;
                }
+
+               ucl_object_iterate_free (obj);
        }
        else {
                /* Optimize allocation by preallocation of table */