fix #4822, not correctly freeing alloca space around ccalls

this is a critical bug fix