mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
Fixes for memory leaks in the C interface
This commit is contained in:
@@ -111,9 +111,9 @@ contains
|
||||
end if
|
||||
|
||||
call psb_precfree(precp, info)
|
||||
|
||||
res = min(info,0)
|
||||
|
||||
deallocate(precp,stat=info)
|
||||
ph%item = c_null_ptr
|
||||
end function psb_c_cprecfree
|
||||
|
||||
|
||||
|
||||
@@ -111,9 +111,9 @@ contains
|
||||
end if
|
||||
|
||||
call psb_precfree(precp, info)
|
||||
|
||||
res = min(info,0)
|
||||
|
||||
deallocate(precp,stat=info)
|
||||
ph%item = c_null_ptr
|
||||
end function psb_c_dprecfree
|
||||
|
||||
|
||||
|
||||
@@ -111,9 +111,9 @@ contains
|
||||
end if
|
||||
|
||||
call psb_precfree(precp, info)
|
||||
|
||||
res = min(info,0)
|
||||
|
||||
deallocate(precp,stat=info)
|
||||
ph%item = c_null_ptr
|
||||
end function psb_c_sprecfree
|
||||
|
||||
|
||||
|
||||
@@ -111,9 +111,9 @@ contains
|
||||
end if
|
||||
|
||||
call psb_precfree(precp, info)
|
||||
|
||||
res = min(info,0)
|
||||
|
||||
deallocate(precp,stat=info)
|
||||
ph%item = c_null_ptr
|
||||
end function psb_c_zprecfree
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user