tests/extmod/btree_gc.py: Close the database to avoid a memory leak.
Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
parent
d67f4115b4
commit
486fe71c6e
|
@ -21,3 +21,6 @@ for i in range(N):
|
|||
db[b"thekey" + str(i)] = b"thelongvalue" + str(i)
|
||||
print(db[b"thekey" + str(i)])
|
||||
gc.collect()
|
||||
|
||||
# Reclaim memory allocated by the db object.
|
||||
db.close()
|
||||
|
|
Loading…
Reference in New Issue