]> git.mxchange.org Git - friendica.git/commitdiff
Database connections should be closed
authorMichael <heluecht@pirati.ca>
Thu, 10 Aug 2017 06:33:24 +0000 (06:33 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 10 Aug 2017 06:33:24 +0000 (06:33 +0000)
include/plugin.php
src/Core/Config.php
src/Core/PConfig.php

index 25e65ec2482aabbf4b9743c4558bf283afb239d9..be06122ea2b3ed1a2ca5a4adb7b69b7033337297 100644 (file)
@@ -182,6 +182,7 @@ function load_hooks() {
                }
                $a->hooks[$rr['hook']][] = array($rr['file'],$rr['function']);
        }
+       dba::close($r);
 }
 
 /**
index f3c5dc13a1800c9e7b015c8c233519221968ca73..be0d0def161a8c4215f1555f8df32850dd62aec8 100644 (file)
@@ -57,6 +57,7 @@ class Config {
                                self::$in_db[$family][$k] = true;
                        }
                }
+               dba::close($r);
        }
 
        /**
index 8080573331d993714a560e9875aa311cfd7e2364..5e1724324192134904b8b398d87c75395d31a94b 100644 (file)
@@ -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] = "!<unset>!";