From: Antony Dovgal Date: Mon, 5 Jun 2006 22:08:16 +0000 (+0000) Subject: fix leak appearing on phpinfo() when there are no PDO modules available X-Git-Tag: php-5.2.0RC1~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b602e85d114ed17f33bdef37927e9afb39737c1;p=php fix leak appearing on phpinfo() when there are no PDO modules available --- diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index 99f658378c..eb56dd6ee4 100755 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -391,6 +391,8 @@ PHP_MINFO_FUNCTION(pdo) if (drivers) { efree(drivers); + } else { + efree(ldrivers); } php_info_print_table_end();