Fixed undefined leak.