Skip to content

Commit

Permalink
fix memory leak in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Jan 15, 2014
1 parent 6bb4791 commit 77f4952
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Parser::~Parser() {
if (model) {
delete model;
}

for (int i = 0; i < train_dat.size(); ++ i) {
if (train_dat[i]) {
delete train_dat[i];
}
}
}

void
Expand Down

0 comments on commit 77f4952

Please sign in to comment.