Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix mem-leak in MulticlassMachine
apply() had an extra SG_REF on the returned CLables
  • Loading branch information
vigsterkr committed May 7, 2012
1 parent 80b01ce commit c132e97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/shogun/machine/MulticlassMachine.cpp
Expand Up @@ -86,7 +86,6 @@ CLabels* CMulticlassMachine::apply()
SG_ERROR("num_machines = %d, did you train your machine?", num_machines);

CLabels *result=new CLabels(num_vectors);
SG_REF(result);
CLabels **outputs=SG_MALLOC(CLabels*, num_machines);

for (int32_t i=0; i < num_machines; ++i)
Expand Down

0 comments on commit c132e97

Please sign in to comment.