It seems that this kills the memory leak, at least some tests indicate that.