Skip to content

Commit 0cbf797

Browse files
authored
Merge pull request #83 from jacobwilliams/82-memory-leak-hotfix
fixed a memory leak when reading the JSON
2 parents 19492dd + b481a5b commit 0cbf797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nf/nf_keras_submodule.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ module function get_keras_h5_layers(filename) result(res)
6565

6666
end do layers
6767

68+
! free the memory:
69+
call json % destroy(model_config_json)
70+
6871
end function get_keras_h5_layers
6972

7073
end submodule nf_keras_submodule

0 commit comments

Comments
 (0)