From f47ab50fd547cb45b3e678673d5dbfebaffddb8b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 1 Jan 2017 17:57:59 +0000 Subject: [PATCH] [Fix] Plug memory leak MFH: true --- contrib/libucl/lua_ucl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index bf80810d3..c4bf1cbe9 100644 --- a/contrib/libucl/lua_ucl.c +++ b/contrib/libucl/lua_ucl.c @@ -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 */ -- 2.39.5