com php-src: Release memory for PDO Stmt ctor args: ext/pdo/pdo_dbh.c
| From: | Nikita Popov | Date: | Sat, 06 Sep 2014 10:52:51 +0000 |
| Subject: | com php-src: Release memory for PDO Stmt ctor args: ext/pdo/pdo_dbh.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81443@lists.php.net to get a copy of this message | ||
Commit: 9ab8605f8b5b7623c57084b4e76cf1d7911df8bc
Author: Nikita Popov <nikic@php.net> Sat, 6 Sep 2014 12:52:51 +0200
Parents: 29397f8fd2b4bc8d95e18448ca2d27a62241a407
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9ab8605f8b5b7623c57084b4e76cf1d7911df8bc
Log:
Release memory for PDO Stmt ctor args
Changed paths:
M ext/pdo/pdo_dbh.c
Diff:
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 814013d..eb7f940 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -466,10 +466,8 @@ static void pdo_stmt_construct(pdo_stmt_t *stmt, zval *object, zend_class_entry
} else if (!Z_ISUNDEF(retval)) {
zval_ptr_dtor(&retval);
}
-
- if (fci.params) {
- efree(fci.params);
- }
+
+ zend_fcall_info_args_clear(&fci, 1);
}
}
/* }}} */