Skip to content

Commit 47762d4

Browse files
authored
fix(csub): fix minor memory leak in csub (#1942)
continuation of #1935
1 parent 9d55d58 commit 47762d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/GroundWaterFlow/gwf-csub.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ subroutine csub_da(this)
24212421
end if
24222422
!
24232423
! -- output table
2424-
if (this%istrainib > 0 .or. this%istrainsk > 0) then
2424+
if (associated(this%outputtab)) then
24252425
call this%outputtab%table_da()
24262426
deallocate (this%outputtab)
24272427
nullify (this%outputtab)

0 commit comments

Comments
 (0)