Take out duplicate freeing of log_file