]> granicus.if.org Git - php/commitdiff
Decref default_link when clearing
authorSara Golemon <pollita@php.net>
Tue, 24 Oct 2017 15:37:24 +0000 (11:37 -0400)
committerSara Golemon <pollita@php.net>
Tue, 24 Oct 2017 15:37:59 +0000 (11:37 -0400)
ext/pgsql/pgsql.c

index 01af261bb51e500249ab84e714a7aa9cb82b2da5..b215697ca9996822e3b2dc67c697fa55824dfd05 100644 (file)
@@ -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);