From: Petter Jönsson Date: Wed, 7 Dec 2011 00:17:23 +0000 (+0100) Subject: backend: close file pointer before unlinking. X-Git-Tag: 1.5.8~43^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a10c2ed8172351c6c2cfc5328e8969215a2dcb7b;p=tt-rss.git backend: close file pointer before unlinking. --- diff --git a/update.php b/update.php index ab4fc6c0..7b17c60f 100755 --- a/update.php +++ b/update.php @@ -120,6 +120,10 @@ } db_close($link); + + if ($lock_handle != false) { + fclose($lock_handle); + } unlink(LOCK_DIRECTORY . "/$lock_filename"); ?>