jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 82 forks source link

Potential json_file memory leak #561

Closed jacobwilliams closed 2 months ago

jacobwilliams commented 3 months ago

json_file_load and json_file_load_from_string don't explicitly destroy the pointer p before loading, so if this type is used in a loop, then there would be a memory leak. I think we see this in test 36.