Skip to content

Commit fc860fa

Browse files
committed
fix
1 parent e39b6c0 commit fc860fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fortran/DarkEnergyInterface.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ end subroutine TDarkEnergyEqnOfState_Init
289289
subroutine TDarkEnergyEqnOfState_Free(this)
290290
type(TDarkEnergyEqnOfState), intent(inout) :: this
291291

292-
if (allocated(this%equation_of_state)) deallocate(this%equation_of_state)
293-
if (allocated(this%logdensity)) deallocate(this%logdensity)
292+
call this%equation_of_state%Clear()
293+
call this%logdensity%Clear()
294294

295295
end subroutine TDarkEnergyEqnOfState_Free
296296
#endif

0 commit comments

Comments
 (0)