From: Andrey Hristov Date: Sun, 1 Jan 2006 16:55:01 +0000 (+0000) Subject: WS X-Git-Tag: php-5.1.2RC2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a75666285461f02fc8573bfa9e2577d4e13c4b1;p=php WS --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index d9d20be2ff..d8a9b5093a 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -653,7 +653,7 @@ PHP_FUNCTION(mysqli_stmt_fetch) for (i = 0; i < stmt->result.var_cnt; i++) { /* Even if the string is of length zero there is one byte alloced so efree() in all cases */ if (Z_TYPE_P(stmt->result.vars[i]) == IS_STRING) { - efree(stmt->result.vars[i]->value.str.val); + efree(stmt->result.vars[i]->value.str.val); } if (!stmt->result.is_null[i]) { switch (stmt->result.buf[i].type) { @@ -707,7 +707,7 @@ PHP_FUNCTION(mysqli_stmt_fetch) ZVAL_LONG(stmt->result.vars[i], llval); } } else { - ZVAL_STRINGL(stmt->result.vars[i], stmt->result.buf[i].val, stmt->result.buf[i].buflen, 1); + ZVAL_STRINGL(stmt->result.vars[i], stmt->result.buf[i].val, stmt->result.buf[i].buflen, 1); } break; default: