mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
Fix MFN error
This commit is contained in:
parent
7a17b23190
commit
b8c5cd2a9d
@ -218,15 +218,14 @@ static void real_result_dtor(struct php_sqlite_result *res TSRMLS_DC)
|
||||
if (res->table) {
|
||||
if (!res->buffered && res->nrows) {
|
||||
res->nrows = 1; /* only one row is stored */
|
||||
}
|
||||
for (i = 0; i < res->nrows; i++) {
|
||||
base = i * res->ncolumns;
|
||||
for (j = 0; j < res->ncolumns; j++) {
|
||||
if (res->table[base + j] != NULL) {
|
||||
efree(res->table[base + j]);
|
||||
for (i = 0; i < res->nrows; i++) {
|
||||
base = i * res->ncolumns;
|
||||
for (j = 0; j < res->ncolumns; j++) {
|
||||
if (res->table[base + j] != NULL) {
|
||||
efree(res->table[base + j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
efree(res->table);
|
||||
}
|
||||
if (res->col_names) {
|
||||
|
Loading…
Reference in New Issue
Block a user