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:
authorJohn Langford <jl@nyclamp.(none)>2014-03-31 19:51:01 +0400
committerJohn Langford <jl@nyclamp.(none)>2014-03-31 19:51:01 +0400
commitce8ffc8ff5821cc45f28739bc0889dc697dc8f98 (patch)
treefb0ef43ec0e37097dd156ae9b24d5295bb97b438 /vowpalwabbit/cbify.cc
parent5023ab65297cc03427afc8ca3d2c7730383b633f (diff)
error check all calls to calloc
Diffstat (limited to 'vowpalwabbit/cbify.cc')
-rw-r--r--vowpalwabbit/cbify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/cbify.cc b/vowpalwabbit/cbify.cc
index 8e5543ac..e264ca20 100644
--- a/vowpalwabbit/cbify.cc
+++ b/vowpalwabbit/cbify.cc
@@ -301,7 +301,7 @@ namespace CBIFY {
learner* setup(vw& all, std::vector<std::string>&opts, po::variables_map& vm, po::variables_map& vm_file)
{//parse and set arguments
- cbify* data = (cbify*)calloc(1, sizeof(cbify));
+ cbify* data = (cbify*)calloc_or_die(1, sizeof(cbify));
data->epsilon = 0.05f;
data->counter = 0;