Skip to content

Commit 624dff9

Browse files
committed
Forgot to free results (Ooops)
1 parent 91beb07 commit 624dff9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

MysqliDb.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,9 @@ public function loadData($importTable, $importFile, $importSettings =
968968
else {
969969
$success = false;
970970
}
971+
972+
// Free result
973+
$result->free();
971974
}
972975
else {
973976
// Throw an exception
@@ -1034,6 +1037,9 @@ public function loadXML($importTable, $importFile, $importSettings = Array("line
10341037
else {
10351038
$success = false;
10361039
}
1040+
1041+
// Free result
1042+
$result->free();
10371043
}
10381044
else {
10391045
// Throw an exception
@@ -1178,6 +1184,9 @@ public function lock($table)
11781184
else {
11791185
throw new Exception("Locking of table ".$table." failed");
11801186
}
1187+
1188+
// Free result
1189+
$result->free();
11811190

11821191
// Return the success value
11831192
return false;
@@ -1211,7 +1220,9 @@ public function unlock()
12111220
throw new Exception("Unlocking of tables failed");
12121221
}
12131222

1214-
1223+
// Free result
1224+
$result->free();
1225+
12151226
// Return self
12161227
return $this;
12171228
}

0 commit comments

Comments
 (0)