diff options
Diffstat (limited to 'src/lua/lua_mempool.c')
-rw-r--r-- | src/lua/lua_mempool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index d5825d1e3..00c2c24e0 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -163,6 +163,7 @@ lua_mempool_destructor_func (gpointer p) lua_rawgeti (ud->L, LUA_REGISTRYINDEX, ud->cbref); if (lua_pcall (ud->L, 0, 0, 0) != 0) { msg_info ("call to destructor failed: %s", lua_tostring (ud->L, -1)); + lua_pop (ud->L, 1); } luaL_unref (ud->L, LUA_REGISTRYINDEX, ud->cbref); } |