fix memory leak in db

This commit is contained in:
2026-04-26 14:26:10 +03:00
parent 40219f2b54
commit 20554d9c5c

View File

@@ -38,6 +38,8 @@ class DB:
if self._transaction_depth == 0:
self._connection = None
conn.close()
else:
conn.close()
@contextmanager