Skip to content

Commit

Permalink
Fix memory leak on getting the parameters from the model
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Sep 15, 2023
1 parent 79ae159 commit f213d0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/crfsuite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ StringList Trainer::params()
pars.push_back(name);
params->free(params, name);
}
params->release(params);
return pars;
}

Expand Down

0 comments on commit f213d0e

Please sign in to comment.