compile-i386: fix use-after-free in func_cleanup()