diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 5f0c1bf3c48d4..ab1f878065114 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1899,6 +1899,7 @@ public function search(array $calendarInfo, $pattern, array $searchProperties, $result = $outerQuery->executeQuery(); $calendarObjects = $result->fetchAll(); + $result->closeCursor(); return array_map(function ($o) { $calendarData = Reader::read($o['calendardata']); @@ -2613,6 +2614,7 @@ public function getSchedulingObjects($principalUri) { 'size' => (int)$row['size'], ]; } + $stmt->closeCursor(); return $result; } @@ -2992,6 +2994,7 @@ public function deleteAllBirthdayCalendars() { ->executeQuery(); $ids = $result->fetchAll(); + $result->closeCursor(); foreach ($ids as $id) { $this->deleteCalendar( $id['id'],