From 4c56f5126f8e0bc7eac9bed75091792ab0264283 Mon Sep 17 00:00:00 2001 From: Stanislav Klinov Date: Tue, 10 Jan 2017 10:47:51 +0300 Subject: [PATCH 1/2] fixing leak of mysql thread handlers --- src/ls_mysql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ls_mysql.c b/src/ls_mysql.c index ce9c0c9..0e29336 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_server_end(); env->closed = 1; lua_pushboolean (L, 1); return 1; From 92dde6a12b4055f314d19d8292084ffbc62a6d10 Mon Sep 17 00:00:00 2001 From: Stanislav Klinov Date: Wed, 11 Jan 2017 14:02:16 +0300 Subject: [PATCH 2/2] replaced depricated MySQL function --- src/ls_mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ls_mysql.c b/src/ls_mysql.c index 0e29336..c5311be 100644 --- a/src/ls_mysql.c +++ b/src/ls_mysql.c @@ -532,7 +532,7 @@ static int env_close (lua_State *L) { lua_pushboolean (L, 0); return 1; } - mysql_server_end(); + mysql_library_end(); env->closed = 1; lua_pushboolean (L, 1); return 1;