This is a local fix. The problem with duplicate looptris still remains. That is, it can still be released in one place but not upgraded in the other. (note: setting the looptris to NULL in the evaluated mesh and assert whether it is still NULL when the mesh is freed could indicate where those cases are).