fixed some leaks in func_force