From: Sara Golemon Date: Tue, 24 Oct 2017 15:37:24 +0000 (-0400) Subject: Decref default_link when clearing X-Git-Tag: php-7.0.26RC1~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68e27b0763014b35b808e13ee12617216bd740b2;p=php Decref default_link when clearing --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 01af261bb5..b215697ca9 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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);