Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocated Pointers: Potential Memory Leak Issue #1099

Closed
laurenchilutti opened this issue Jan 3, 2023 · 0 comments · Fixed by #1100, #1106 or #1152 · May be fixed by #1107 or #1208
Closed

Allocated Pointers: Potential Memory Leak Issue #1099

laurenchilutti opened this issue Jan 3, 2023 · 0 comments · Fixed by #1100, #1106 or #1152 · May be fixed by #1107 or #1208
Labels
enhancement Issue/PR for a modification that increases performance, improves syntax, or adds functionality.

Comments

@laurenchilutti
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In horiz_interp and interpolator, some variables with the type of pointer are being allocated storage space with the use of the allocate statement. With newer versions of Fortran, we now have access to the allocatable type. The allocatable type is safer to use as storage will automatically be deallocated at end of a program. With the pointer type, we can potentially cause memory leaks if we do not deallocate the pointer.

Describe the solution you'd like
Change any allocated pointers to allocatables.

Describe alternatives you've considered
N/A

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment