Skip to content

Commit

Permalink
fix segfault via adding missing SG_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Mar 20, 2018
1 parent 2362d20 commit e90eee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/classifier/svm/SVMOcas_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ TEST(SVMOcasTest,train)
EXPECT_NEAR(objective, 0.024344632618686062, 1e-2);

CLabels* pred = ocas->apply(test_feats);
SG_REF(pred);
CAccuracyMeasure evaluate = CAccuracyMeasure();
evaluate.evaluate(pred, ground_truth);
EXPECT_GT(evaluate.get_accuracy(), 0.99);
Expand Down

0 comments on commit e90eee5

Please sign in to comment.