Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
git-svn-id: https://ccpforge.cse.rl.ac.uk/svn/spral/branches/cpu_ssids@1124 33810a50-c353-450f-be6c-41f7241c649d
  • Loading branch information
jhogg41 committed Sep 1, 2016
1 parent 3c96ac4 commit 53f89f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ssids/cpu/subtree.f90
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function factor(this, posdef, aval, child_contrib, options, inform, scaling)
aval, cscaling, contrib_ptr, coptions, cstats)
if(cstats%flag.lt.0) then
call c_destroy_numeric_subtree(cpu_factor%posdef, cpu_factor%csubtree)
deallocate(cpu_factor, stat=st)
inform%flag = cstats%flag
return
endif
Expand Down

0 comments on commit 53f89f1

Please sign in to comment.