diff --git a/src/ls_mysql.c b/src/ls_mysql.c index ce9c0c9..c5311be 100644 --- a/src/ls_mysql.c +++ b/src/ls_mysql.c @@ -532,6 +532,7 @@ static int env_close (lua_State *L) { lua_pushboolean (L, 0); return 1; } + mysql_library_end(); env->closed = 1; lua_pushboolean (L, 1); return 1;