diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-01 17:57:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-01 17:58:33 +0000 |
commit | f47ab50fd547cb45b3e678673d5dbfebaffddb8b (patch) | |
tree | 226a9b66c1ab07e8b8ec61d4e30b00d86c9e1a50 /contrib/libucl | |
parent | ab114be5a27a674306f0584df00457370d082520 (diff) | |
download | rspamd-f47ab50fd547cb45b3e678673d5dbfebaffddb8b.tar.gz rspamd-f47ab50fd547cb45b3e678673d5dbfebaffddb8b.zip |
[Fix] Plug memory leak
MFH: true
Diffstat (limited to 'contrib/libucl')
-rw-r--r-- | contrib/libucl/lua_ucl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |