corrected return stat, don't deallocate if e is a local variable