Fix memory corruption in all tests

Due to the error map not being static but living in a header, there was some double-free action on shutdown

Merge request reports

Loading