Skip to content

Commit

Permalink
Merge pull request #74 from nikolsky/model_buffer_memory_leak_fix
Browse files Browse the repository at this point in the history
Fixed memory leak in Tagger, model->buffer_orig not freed
  • Loading branch information
chokkan authored Aug 23, 2017
2 parents 8c0028c + bd2f66e commit cadaefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crf/src/crf1d_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ crf1dm_t* crf1dm_new(const char *filename)
fseek(fp, 0, SEEK_SET);

buffer = buffer_orig = (uint8_t*)malloc(size + 16);
if (buffer_orig = NULL) {
if (buffer_orig == NULL) {
goto error_exit;
}

Expand Down

0 comments on commit cadaefe

Please sign in to comment.