} else {
throw context.getRuntime().newRuntimeError("cannot free non-allocated function");
}
// Replace memory object with one that throws an exception on any access
setMemoryIO(new FreedMemoryIO(context.getRuntime()));
return context.getRuntime().getNil();
}