Pull Request №660 RosettaCommons/rosetta/main ← lyskov-ai/rosetta/fix/simulate-mpi-memory-leak
Merge: 068bd85322153b1ddc5a354f8cf0633a5631e9fa←8e107b58d4261b849c1987b2ce35860ec09eb427
Fix memory leak in SimulateMPI: use unique_ptr for simulation_ ownership
----------------
Merge commit message:
Fix memory leak in SimulateMPI: use unique_ptr for simulation_ ownership
initialize_simulation() unconditionally assigned a new SimulateMPIData*
without deleting any previous allocation, leaking memory on re-initialization.
Switch simulation_ from a raw pointer to unique_ptr so reset() properly
frees the old object and the static is cleaned up at program exit.