subroutine finalize(file) !< Free dynamic memory when finalizing. type(xml_file), intent(inout) :: file !< XML file. call file%free endsubroutine finalize