We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1651cd commit ab911a3Copy full SHA for ab911a3
src/tests/jf_test_12.F90
@@ -150,9 +150,10 @@ subroutine test_12(error_cnt)
150
call json%get(me=root,path='array data.data',array_callback=get_3D_from_array)
151
call check_errors(all(abs(fetched_array - reshape(raw_array,[size(raw_array)])) <= TOL))
152
153
- my_file = json_file(root,verbose=.true.,real_format='G')
154
-
155
- call json%destroy(root)
+ !my_file = json_file(root,verbose=.true.,real_format='G') ! valgrind says this cases a memory leak
+ call my_file%initialize(verbose=.true.,real_format='G') ! this doesn't have a memmory leak
+ call my_file%add(root)
156
+ nullify(root)
157
158
call my_file%update('array data.description',CK_'vector data',found=existed)
159
call check_file_errors(existed)
0 commit comments