This error happens with master f77de678d89fe9e279cbb4228959955f42b007d3 2.93, 2.83.
Run the following script: blender --factory-startup -P leak_memory.py
import bpy bpy.ops.object.editmode_toggle() ob = bpy.context.active_object bpy.context.scene.collection.children[0].objects.unlink(ob) bpy.data.objects.remove(ob) bpy.ops.wm.quit_blender()
Blender exists with:
Error: Not freed memory blocks: 24, total unfreed memory 0.489273 MB
Unlinking the mesh from the outliner while in edit-mode also leaks memory.