From: Yiduo (David) Wang Date: Mon, 8 Oct 2007 04:05:22 +0000 (+0000) Subject: stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL X-Git-Tag: RELEASE_2_0_0a1~1635 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2514bcfdec8eb6d8a41190ecbf0873fc2abe7c8c;p=php stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 72ae4a5c5a..c33b4a1d30 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -845,7 +845,7 @@ static int do_fetch_opt_finish(pdo_stmt_t *stmt, int free_ctor_agrs TSRMLS_DC) / stmt->fetch.cls.fci.param_count = 0; } if (stmt->fetch.func.values) { - FREE_ZVAL(stmt->fetch.func.values); + efree(stmt->fetch.func.values); stmt->fetch.func.values = NULL; } return 1;