Skip to content

Commit 6021018

Browse files
committed
possible fix for NAG issue #307
1 parent 0e9f849 commit 6021018

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/json_value_module.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,9 +2097,9 @@ recursive subroutine json_value_destroy(json,p,destroy_next)
20972097

20982098
if (associated(p%next) .and. des_next) call json%destroy(p%next)
20992099

2100-
if (associated(p%previous)) nullify(p%previous)
2101-
if (associated(p%parent)) nullify(p%parent)
2102-
if (associated(p%tail)) nullify(p%tail)
2100+
nullify(p%previous)
2101+
nullify(p%parent)
2102+
nullify(p%tail)
21032103

21042104
if (associated(p)) deallocate(p)
21052105
nullify(p)

0 commit comments

Comments
 (0)