CRA-651 Remove memory leakages in travel-time inversion