Added a missing call to db_close() in sb_lua_db_close().

This commit is contained in:
Alexey Kopytov
2009-02-20 16:02:02 +00:00
parent b1a077bc24
commit 946f88aa91

View File

@ -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;
}