Tutorial: Analyzing Memory Errors with Intel® Inspector and a Fortran Sample
To fix the detected memory error:
Scroll to near line 94. The embedded commenting in the nqueens_memory.f90 sample file reveals the cause of the Memory leak error: The deallocate call near line 95 that releases the memory is commented out.
Double-click near line 94 in the
Source tab to open the
nqueens_memory.f90 source file in an editor:
Uncomment !deallocate (correct_solution).
Save your edits.
Click the result tab to return to the Sources window.
The Sources window data is unchanged because it is a snapshot of the source code at the time of analysis.
Click the Summary button to display the Summary window.