]> granicus.if.org Git - php/commitdiff
fix leak appearing on phpinfo() when there are no PDO modules available
authorAntony Dovgal <tony2001@php.net>
Mon, 5 Jun 2006 22:08:16 +0000 (22:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 5 Jun 2006 22:08:16 +0000 (22:08 +0000)
ext/pdo/pdo.c

index 99f658378c11bad829f8c2964d213583d2c870f3..eb56dd6ee4b5a0af0cc3f234fd7934d48fefb891 100755 (executable)
@@ -391,6 +391,8 @@ PHP_MINFO_FUNCTION(pdo)
 
        if (drivers) {
                efree(drivers);
+       } else {
+               efree(ldrivers);
        }
 
        php_info_print_table_end();