]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #38535 (memory corruption in pdo_pgsql driver on error
authorIlia Alshanetsky <iliaa@php.net>
Mon, 21 Aug 2006 16:54:05 +0000 (16:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 21 Aug 2006 16:54:05 +0000 (16:54 +0000)
retrieval inside a failed query executed via query() method).

ext/pdo/pdo_dbh.c

index b0b1c2fd6c557a4caf3962970de224c26d5d9d85..f6558f7fa794aa0e91ae5b69d83e2c203e052e7c 100755 (executable)
@@ -1044,9 +1044,6 @@ static PHP_METHOD(PDO, query)
                /* something broke */
        }
 
-       /* kill the object handle for the stmt here */
-       zval_dtor(return_value);
-
        RETURN_FALSE;
 }
 /* }}} */