Skip to content

Commit

Permalink
Close meta database connection when no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Aug 25, 2024
1 parent 4991a64 commit 421170e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/LinkCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function __construct(string $page, string $project, $namespaces = '') {
}

list($dbName, $this->projectURL) = $stmt->fetch();
$metaDB = null;

$db = DatabaseFactory::create($dbName);
$this->title = new Title($page, $dbName, $this->projectURL);
$this->countQuery = new CountQuery($namespaces, $db, $this->title);
Expand Down

0 comments on commit 421170e

Please sign in to comment.