From 946f88aa91ca9e05b6d1e13ca2fc9f740bc2f2d2 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Fri, 20 Feb 2009 16:02:02 +0000 Subject: [PATCH] Added a missing call to db_close() in sb_lua_db_close(). --- sysbench/scripting/script_lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysbench/scripting/script_lua.c b/sysbench/scripting/script_lua.c index 0bfe20d..e8231bc 100644 --- a/sysbench/scripting/script_lua.c +++ b/sysbench/scripting/script_lua.c @@ -961,6 +961,8 @@ int sb_lua_db_close(lua_State *L) luaL_unref(L, LUA_REGISTRYINDEX, stmt->param_ref); luaL_unref(L, LUA_REGISTRYINDEX, stmt->result_ref); + + db_close(stmt->ptr); return 0; }