Fixed afni memory leak by restarting per scan