]> granicus.if.org Git - php/commitdiff
stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL
authorYiduo (David) Wang <davidw@php.net>
Mon, 8 Oct 2007 04:05:22 +0000 (04:05 +0000)
committerYiduo (David) Wang <davidw@php.net>
Mon, 8 Oct 2007 04:05:22 +0000 (04:05 +0000)
ext/pdo/pdo_stmt.c

index 72ae4a5c5a367545ccff20d77270327ad47e4abe..c33b4a1d3009b58dcc85909c3f4655b0a7e61b1b 100755 (executable)
@@ -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;