diff --git a/h5grove/content.py b/h5grove/content.py index 2b28ccc..72c2206 100644 --- a/h5grove/content.py +++ b/h5grove/content.py @@ -288,6 +288,7 @@ def get_content_from_file( fallback=LinkResolution.ONLY_VALID, ) except QueryArgumentError as e: + f.close() raise create_error(422, str(e)) try: