Fix and enable AddressSanitizer jobs
Description
Enabling the AddressSanitizer jobs (which have literally never run) revealed that some new memory leaks have been introduced in the meantime. These need to be fixed.
There are some disgusting hacks in this MR which are necessary to work around various bugs, but should be discussed.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.