diff options
author | Hal Daume III <me@hal3.name> | 2014-01-09 19:10:47 +0400 |
---|---|---|
committer | Hal Daume III <me@hal3.name> | 2014-01-09 19:10:47 +0400 |
commit | 2db053ad4b5d481fd560636c9337a27aa6f0f725 (patch) | |
tree | e821fcc7d5e9b5a7b349e075be216e69f1afd1ad /vowpalwabbit/csoaa.cc | |
parent | 679879c9eb7606d4d75fdbaf3118946a292b989f (diff) |
fixed memory leaks
Diffstat (limited to 'vowpalwabbit/csoaa.cc')
-rw-r--r-- | vowpalwabbit/csoaa.cc | 3 |
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 ++) { |