diff options
author | Antony Dovgal <tony2001@php.net> | 2006-06-05 22:08:16 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-06-05 22:08:16 +0000 |
commit | 1b602e85d114ed17f33bdef37927e9afb39737c1 (patch) | |
tree | 15bcc9bf005e29a4a620e297b71ffa02dfae5ba9 | |
parent | 66b90c7052f43066abea88cfba25ea0c18acd961 (diff) | |
download | php-git-1b602e85d114ed17f33bdef37927e9afb39737c1.tar.gz |
fix leak appearing on phpinfo() when there are no PDO modules available
-rwxr-xr-x | ext/pdo/pdo.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |