json_file_nullify Subroutine

private subroutine json_file_nullify(me)

Nullify the json_value pointer in a json_file, but do not destroy it.

This should normally only be done if the pointer is the target of another pointer outside the class that is still intended to be in scope after the json_file has gone out of scope. Otherwise, this would result in a memory leak.

See also

History

  • 6/30/2019 : Created

Arguments

Type IntentOptional AttributesName
class(json_file), intent(inout) :: me

Contents

Source Code


Source Code

    subroutine json_file_nullify(me)

    implicit none

    class(json_file),intent(inout) :: me

    nullify(me%p)

    end subroutine json_file_nullify