Resolve Issue

To fix the detected memory error:

Investigate the Issue

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.

Access an Editor

Double-click near line 94 in the Source tab to open the nqueens_memory.f90 source file in an editor:
Editor

Change the Source Code

  1. Uncomment !deallocate (correct_solution).

  2. Save your edits.

  3. Click the result tab to return to the Sources window.

    Note

    The Sources window data is unchanged because it is a snapshot of the source code at the time of analysis.

  4. Click the Summary button to display the Summary window.

Key Terms

Code location


Studio-specific supplemental documentation may be available at <install-dir>/<studio>/documentation/.

For more complete information about compiler optimizations, see our Optimization Notice.