Skip to content

Commit

Permalink
Fix leak in Serialization.liblinear unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jun 6, 2013
1 parent 8d8eabd commit f2221e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/base/Serialization_unittest.cc
Expand Up @@ -104,6 +104,7 @@ TEST(Serialization, liblinear)
CBinaryLabels* pred = CLabelsFactory::to_binary(liblin->apply(test_feats));
for (int i = 0; i < num_samples; ++i)
EXPECT_EQ(ground_truth->get_int_label(i), pred->get_int_label(i));
SG_UNREF(pred);

/* save liblin */
const char* filename="trained_liblin.txt";
Expand Down

0 comments on commit f2221e4

Please sign in to comment.