Skip to content

Commit

Permalink
Don't free params unless the refcount is zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tavian Barnes committed Oct 5, 2015
1 parent 6fdf1e9 commit 9f52dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crf/src/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ static int params_release(crfsuite_params_t* params)
}
free(pars->params);
free(pars);
free(params);
}
free(params);
return count;
}

Expand Down

0 comments on commit 9f52dfa

Please sign in to comment.