Skip to content

Commit 68e27b0

Browse files
committed
Decref default_link when clearing
1 parent 22c4876 commit 68e27b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,7 @@ PHP_FUNCTION(pg_close)
15791579
}
15801580

15811581
if (link == PGG(default_link)) {
1582+
zend_list_delete(link);
15821583
PGG(default_link) = NULL;
15831584
}
15841585
zend_list_close(link);

0 commit comments

Comments
 (0)