Mixed

Memory leak fix with allow_gc=False
other mixed stuff.