From 7f3eda0a312642a19c15f7a2d2cdf59890baf76d Mon Sep 17 00:00:00 2001 From: Brendan Fabeny Date: Thu, 6 Oct 2011 09:53:17 +0000 Subject: Add libocas 0.93, efficient training of SVM classifiers. --- math/libocas/files/patch-msvmocas.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 math/libocas/files/patch-msvmocas.c (limited to 'math/libocas/files/patch-msvmocas.c') 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); -- cgit v1.2.3