Skip to content

Commit

Permalink
Fix memory leak in filter_topo.F90 that was found by
Browse files Browse the repository at this point in the history
running the GNU debug option.

Fixes #105
  • Loading branch information
GeorgeGayno-NOAA committed Aug 4, 2021
1 parent 0f5f3cb commit acba0fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sorc/grid_tools.fd/filter_topo.fd/filter_topo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ program filter_topo
call FV3_zs_filter(is,ie,js,je,isd,ied,jsd,jed,npx,npy,npx,ntiles,grid_type, &
stretch_fac, nested, area, dxa, dya, dx, dy, dxc, dyc, sin_sg, oro, regional )

deallocate(sin_sg, dx, dy, mask, dxc, dyc, area, dxa, dya)

!--- write out the data
call write_topo_file(is,ie,js,je,ntiles,oro(is:ie,js:je,:),regional )

deallocate (oro)

contains

!> ???
Expand Down

0 comments on commit acba0fb

Please sign in to comment.