From ed1d882091e077c4027cf27e481ad696b3b3d595 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 2 Nov 2020 14:56:31 +0900 Subject: [PATCH] =?UTF-8?q?sql=5Ffree=5Fresult=20=EC=8B=9C=20mysql=20resou?= =?UTF-8?q?rce=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index ad1648eaa..ec357e4b0 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1655,6 +1655,8 @@ function sql_fetch_array($result) // 단, 결과 값은 스크립트(script) 실행부가 종료되면서 메모리에서 자동적으로 지워진다. function sql_free_result($result) { + if(!is_resource($result)) return; + if(function_exists('mysqli_free_result') && G5_MYSQLI_USE) return mysqli_free_result($result); else