summaryrefslogtreecommitdiff
path: root/packages/Makefile
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2018-02-07 14:51:38 +0100
committerregnat <rg@regnat.ovh>2018-02-07 15:09:36 +0100
commit594a77198f154de54f5aa3395b22b2536a9ecc4c (patch)
treead683cd8246cfc7e770cfca07aa788795bfdeac8 /packages/Makefile
parent8cb879a4ad83656bc70652957a08113e2b784886 (diff)
GSL.ODE: free the jacobian after use
When calling the function `Numeric.GSL.ODE.odeSolveVWith'` and provide a jacobian, a pointer to this jacobian is registered (at https://github.com/albertoruiz/hmatrix/blob/8cb879a4ad83656bc70652957a08113e2b784886/packages/gsl/src/Numeric/GSL/ODE.hs#L146-L148), but never freed, which causes a memory leak. This commits adds a call to `freeHaskellFunPtr` when needed at the end of the function to fix this.
Diffstat (limited to 'packages/Makefile')
0 files changed, 0 insertions, 0 deletions