So we probably have some leakage here :-(
Looking at the full code, it's hard to keep track of who owns (so is responsible for clearing away) what.
I guess I'll wait for valgrind to give me some hints ...