Skip to content

Commit

Permalink
Decref default_link when clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
sgolemon committed Oct 24, 2017
1 parent 22c4876 commit 68e27b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ PHP_FUNCTION(pg_close)
}

if (link == PGG(default_link)) {
zend_list_delete(link);
PGG(default_link) = NULL;
}
zend_list_close(link);
Expand Down

0 comments on commit 68e27b0

Please sign in to comment.