summaryrefslogtreecommitdiff
path: root/math/libocas/files/patch-msvmocas.c
diff options
context:
space:
mode:
authorBrendan Fabeny <bf@FreeBSD.org>2011-10-06 09:53:17 +0000
committerBrendan Fabeny <bf@FreeBSD.org>2011-10-06 09:53:17 +0000
commit7f3eda0a312642a19c15f7a2d2cdf59890baf76d (patch)
treeabf9989e0998844d53b994f8e03b1baf8c547888 /math/libocas/files/patch-msvmocas.c
parentUpdate to 0.6 release. (diff)
Add libocas 0.93, efficient training of SVM classifiers.
Diffstat (limited to 'math/libocas/files/patch-msvmocas.c')
-rw-r--r--math/libocas/files/patch-msvmocas.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/libocas/files/patch-msvmocas.c b/math/libocas/files/patch-msvmocas.c
new file mode 100644
index 000000000000..0cb51a0aa100
--- /dev/null
+++ b/math/libocas/files/patch-msvmocas.c
@@ -0,0 +1,20 @@
+--- msvmocas.c.orig 2010-05-05 08:55:55.000000000 -0400
++++ msvmocas.c 2011-10-06 05:20:07.000000000 -0400
+@@ -91,6 +91,8 @@
+ total_time = get_time();
+
+ /* init */
++ input_fname = NULL;
++ model_fname= NULL;
+ data_X = NULL;
+ data_y = NULL;
+ W = NULL;
+@@ -508,6 +510,8 @@
+
+ clean_up:
+
++ free(input_fname);
++ free(model_fname);
+ mxDestroyArray(data_X);
+ mxFree(data_y);
+ mxFree(W);