Reinstantiate c3c30113b "fix memleaks in duchain unittests"
We also lost this, thanks to Nicolas for pointing this out!