Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHal Daume III <me@hal3.name>2014-01-09 19:10:47 +0400
committerHal Daume III <me@hal3.name>2014-01-09 19:10:47 +0400
commit2db053ad4b5d481fd560636c9337a27aa6f0f725 (patch)
treee821fcc7d5e9b5a7b349e075be216e69f1afd1ad /vowpalwabbit/csoaa.cc
parent679879c9eb7606d4d75fdbaf3118946a292b989f (diff)
fixed memory leaks
Diffstat (limited to 'vowpalwabbit/csoaa.cc')
-rw-r--r--vowpalwabbit/csoaa.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/vowpalwabbit/csoaa.cc b/vowpalwabbit/csoaa.cc
index 6e9fbad0..dbc5673d 100644
--- a/vowpalwabbit/csoaa.cc
+++ b/vowpalwabbit/csoaa.cc
@@ -320,8 +320,7 @@ namespace CSOAA {
size_t prediction = 1;
float score = FLT_MAX;
- label_data simple_temp;
- simple_temp.initial = 0.;
+ label_data simple_temp = { 0., 0., 0. };
ec->ld = &simple_temp;
for (wclass *cl = ld->costs.begin; cl != ld->costs.end; cl ++)
{