diff options
author | John Langford <jl@nyclamp.(none)> | 2014-03-31 19:51:01 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2014-03-31 19:51:01 +0400 |
commit | ce8ffc8ff5821cc45f28739bc0889dc697dc8f98 (patch) | |
tree | fb0ef43ec0e37097dd156ae9b24d5295bb97b438 /vowpalwabbit/cbify.cc | |
parent | 5023ab65297cc03427afc8ca3d2c7730383b633f (diff) |
error check all calls to calloc
Diffstat (limited to 'vowpalwabbit/cbify.cc')
-rw-r--r-- | vowpalwabbit/cbify.cc | 2 |
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; |