Caused by b40a9ce60b. For the non-edit mode code path, the mesh is freed as part of `BKE_mesh_nomain_to_mesh`.
b40a9ce60b