From 1de26c84dd8e6e41c92df6a8fbcbdf30933ecc88 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 12 Jan 2023 17:54:55 +0100 Subject: Tear down in catch of an Exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/provisioning_api/lib/Controller/AUserData.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/provisioning_api/lib/Controller') diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php index e9855eebe91..909f3dcca74 100644 --- a/apps/provisioning_api/lib/Controller/AUserData.php +++ b/apps/provisioning_api/lib/Controller/AUserData.php @@ -277,6 +277,8 @@ abstract class AUserData extends OCSController { 'exception' => $e, ] ); + /* In case the Exception left things in a bad state */ + \OC_Util::tearDownFS(); return []; } return $data; -- cgit v1.2.3