Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since libsvm re-uses stuff from the problem instance, we cannot free the problem before the model. This is hopefully accomplished with Foreign.Concurrent.newForeignPtr and explicit free's on the stored objects. Atleast valgrind is happy and no segfaults appear.
- Loading branch information
Showing
2 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters