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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me |
subroutine json_file_nullify(me)
implicit none
class(json_file),intent(inout) :: me
nullify(me%p)
end subroutine json_file_nullify