Free up memory before disabling gc.
Merge remote-tracking branch 'anonrig/master'