Memory leak and bug in Global Track Matching
- Global track matching had a memory leak
- Through tracks were dying for some reason.
Both have the same root cause; the error handling during track extrapolation was not well handled. This meant that for those tracks with no downstream detectors, track extrapolation failed at the EMR (energy loss causes track to stop and throw exception) so the
gsl_odeiv_blah stuff was not freed correctly and the track was lost, where it should have been stored.