diff --git a/src/config.f90 b/src/config.f90 index e417b2bd5..d87bb754d 100644 --- a/src/config.f90 +++ b/src/config.f90 @@ -345,6 +345,8 @@ subroutine free(this) class(tPartitionedStringList), target, intent(in) :: this type(tPartitionedStringList), pointer :: new, item + if (.not. associated(this%next)) return + item => this%next do while (associated(item%next)) new => item