From 9ab8605f8b5b7623c57084b4e76cf1d7911df8bc Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 6 Sep 2014 12:52:51 +0200 Subject: [PATCH] Release memory for PDO Stmt ctor args --- ext/pdo/pdo_dbh.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 814013d319..eb7f940528 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); } } /* }}} */ -- 2.50.1