fix free local releasing bug
fix non-void calls; loop test passes