From: Vsevolod Stakhov Date: Sun, 1 Jan 2017 17:57:59 +0000 (+0000) Subject: [Fix] Plug memory leak X-Git-Tag: 1.4.2~5^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3420fa85ae1179977f3fe92bbcd9362d2b71ef5c;p=thirdparty%2Frspamd.git [Fix] Plug memory leak MFH: true --- diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index bf80810d3e..c4bf1cbe9d 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 */