Consolidate to a single free function for lists of log files.