Skip to content

Commit

Permalink
fix memmory leak based on issue 1488 (https://code.google.com/p/tesse…
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jul 27, 2015
1 parent 5dfb0cb commit d937659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions training/cntraining.cpp
Expand Up @@ -167,6 +167,8 @@ int main(int argc, char* argv[])
pCharList = CharList;
iterate(pCharList) {
//Cluster
if (Clusterer)
FreeClusterer(Clusterer);
CharSample = (LABELEDLIST)first_node(pCharList);
Clusterer =
SetUpForClustering(FeatureDefs, CharSample, PROGRAM_FEATURE_TYPE);
Expand Down

0 comments on commit d937659

Please sign in to comment.