Fix MFN error

This commit is contained in:
Marcus Boerger 2003-05-02 22:17:01 +00:00
parent 7a17b23190
commit b8c5cd2a9d

View File

@ -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) {