From 33b61ab26283deccb9ecf7f7b28fce7aa27ef2f1 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 10 Aug 2017 06:33:24 +0000 Subject: [PATCH] Database connections should be closed --- include/plugin.php | 1 + src/Core/Config.php | 1 + src/Core/PConfig.php | 1 + 3 files changed, 3 insertions(+) diff --git a/include/plugin.php b/include/plugin.php index 25e65ec24..be06122ea 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -182,6 +182,7 @@ function load_hooks() { } $a->hooks[$rr['hook']][] = array($rr['file'],$rr['function']); } + dba::close($r); } /** diff --git a/src/Core/Config.php b/src/Core/Config.php index f3c5dc13a..be0d0def1 100644 --- a/src/Core/Config.php +++ b/src/Core/Config.php @@ -57,6 +57,7 @@ class Config { self::$in_db[$family][$k] = true; } } + dba::close($r); } /** diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index 808057333..5e1724324 100644 --- a/src/Core/PConfig.php +++ b/src/Core/PConfig.php @@ -43,6 +43,7 @@ class PConfig { $a->config[$uid][$family][$k] = $rr['v']; self::$in_db[$uid][$family][$k] = true; } + dba::close($r); } else if ($family != 'config') { // Negative caching $a->config[$uid][$family] = "!!";