]> granicus.if.org Git - php/commitdiff
- Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
authorFelipe Pena <felipe@php.net>
Thu, 29 Jul 2010 23:38:55 +0000 (23:38 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 29 Jul 2010 23:38:55 +0000 (23:38 +0000)
NEWS
ext/pdo/pdo_stmt.c

diff --git a/NEWS b/NEWS
index 0c2dd0b5695b1b6c7cb4dafae7f785152e75ec9d..352a57928c62ad05de436ecc7225fd882b5bb378 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2010, PHP 5.3.4
-
+- Fixed bug #52487 (PDO::FETCH_INTO leaks memory). (Felipe)
 - Fixed bug #52436 (Compile error if systems do not have stdint.h)
   (Sriram Natarajan)
 
index 7f8203c1d8d20c5420ccc4f844e6878894cce0ea..2403dfb9114bfa99d12c82f7437131e9fcb1bb69 100755 (executable)
@@ -1887,7 +1887,7 @@ int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, in
        switch (stmt->default_fetch_type) {
                case PDO_FETCH_INTO:
                        if (stmt->fetch.into) {
-                               Z_DELREF_P(stmt->fetch.into);
+                               zval_ptr_dtor(&stmt->fetch.into);
                                stmt->fetch.into = NULL;
                        }
                        break;