I know this is probably an impossible questions but is there a way to find such leaks? The whole program is available as the opencalphad repository at github if anyone wants to test, running the parallel2 macro in an infinite loop shows the use of memory is gradually increasing.
The problem is more critical when the software is used by a code written in C++ via an isoC interface. Are there any known memory problems using this?
I use OpenMP for parallelization, any memory issues with that?
The rest is plain Fortran 08.
Thanks for any suggestions