Memory leaks and compiler warnings.