Commit 624dff9f authored by Jonas's avatar Jonas

Forgot to free results (Ooops)

parent 91beb078
...@@ -968,6 +968,9 @@ class MysqliDb ...@@ -968,6 +968,9 @@ class MysqliDb
else { else {
$success = false; $success = false;
} }
// Free result
$result->free();
} }
else { else {
// Throw an exception // Throw an exception
...@@ -1034,6 +1037,9 @@ class MysqliDb ...@@ -1034,6 +1037,9 @@ class MysqliDb
else { else {
$success = false; $success = false;
} }
// Free result
$result->free();
} }
else { else {
// Throw an exception // Throw an exception
...@@ -1178,6 +1184,9 @@ class MysqliDb ...@@ -1178,6 +1184,9 @@ class MysqliDb
else { else {
throw new Exception("Locking of table ".$table." failed"); throw new Exception("Locking of table ".$table." failed");
} }
// Free result
$result->free();
// Return the success value // Return the success value
return false; return false;
...@@ -1211,7 +1220,9 @@ class MysqliDb ...@@ -1211,7 +1220,9 @@ class MysqliDb
throw new Exception("Unlocking of tables failed"); throw new Exception("Unlocking of tables failed");
} }
// Free result
$result->free();
// Return self // Return self
return $this; return $this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment