dependency_destroy Subroutine

public elemental subroutine dependency_destroy(self)

Clean memory

Arguments

Type IntentOptional Attributes Name
class(dependency_config_t), intent(inout) :: self

Source Code

    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