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

FreeSparseKmerGraph 出现coredump #77

Open
shuleyu opened this issue Apr 14, 2021 · 0 comments
Open

FreeSparseKmerGraph 出现coredump #77

shuleyu opened this issue Apr 14, 2021 · 0 comments

Comments

@shuleyu
Copy link

shuleyu commented Apr 14, 2021

free(ht->store_pos);

从逻辑看猜测是这里free 了一个空指针,未验证。
建议在这行前加上卫语句:

if (ht->store_pos != NULL) {
free(ht->store_pos);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant