Clean memory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dependency_config_t), | intent(inout) | :: | self |
elemental subroutine dependency_destroy(self) class(dependency_config_t), intent(inout) :: self if (allocated(self%name)) deallocate(self%name) if (allocated(self%path)) deallocate(self%path) if (allocated(self%namespace)) deallocate(self%namespace) if (allocated(self%requested_version)) deallocate(self%requested_version) if (allocated(self%git)) deallocate(self%git) end subroutine dependency_destroy