Skip to content

Commit 4d413e3

Browse files
committed
Forgot to free results (Ooops) (reverted from commit 624dff9)
1 parent 624dff9 commit 4d413e3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

MysqliDb.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,6 @@ public function loadData($importTable, $importFile, $importSettings =
968968
else {
969969
$success = false;
970970
}
971-
972-
// Free result
973-
$result->free();
974971
}
975972
else {
976973
// Throw an exception
@@ -1037,9 +1034,6 @@ public function loadXML($importTable, $importFile, $importSettings = Array("line
10371034
else {
10381035
$success = false;
10391036
}
1040-
1041-
// Free result
1042-
$result->free();
10431037
}
10441038
else {
10451039
// Throw an exception
@@ -1184,9 +1178,6 @@ public function lock($table)
11841178
else {
11851179
throw new Exception("Locking of table ".$table." failed");
11861180
}
1187-
1188-
// Free result
1189-
$result->free();
11901181

11911182
// Return the success value
11921183
return false;
@@ -1220,9 +1211,7 @@ public function unlock()
12201211
throw new Exception("Unlocking of tables failed");
12211212
}
12221213

1223-
// Free result
1224-
$result->free();
1225-
1214+
12261215
// Return self
12271216
return $this;
12281217
}

0 commit comments

Comments
 (0)