Fixes for memory leaks in the C interface

This commit is contained in:
Salvatore Filippone
2021-02-02 15:44:12 +01:00
parent 3e6fdd39e4
commit 81fc75a091
11 changed files with 42 additions and 12 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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