summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-02 22:17:01 +0000
committerMarcus Boerger <helly@php.net>2003-05-02 22:17:01 +0000
commitb8c5cd2a9d25e23b3376f9913a1991511721a1cb (patch)
tree4300ae4a1abe657d955fe5a8327521f7ad81943c /ext/sqlite/sqlite.c
parent7a17b231903ad7432e229c7b6fe025a22cbc62d2 (diff)
downloadphp-git-b8c5cd2a9d25e23b3376f9913a1991511721a1cb.tar.gz
Fix MFN error
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index 4aa390fc78..07d3e60cbb 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -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) {