Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling for model files loading #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add the missing free call
kmike committed Apr 26, 2014
commit b140709fb790f5604dd0fb7f2a9766768f984d4d
1 change: 1 addition & 0 deletions lib/crf/src/crf1d_model.c
Original file line number Diff line number Diff line change
@@ -744,6 +744,7 @@ crf1dm_t* crf1dm_new(const char *filename)

if (memcmp((void*)header->magic, (void*)FILEMAGIC, sizeof(header->magic))) {
free(model->buffer_orig);
free(model->header);
goto error_exit;
}