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

Update sm_pool.c #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update sm_pool.c #2

wants to merge 1 commit into from

Conversation

lxuechao
Copy link

这里似乎有个判断错误,当do_zero非空时,释放内存需要memset,因为release的代码如下:
int sm_release_pool(struct smalloc_pool *spool) { return sm_set_pool(spool, NULL, 0, 0, NULL); }

这里似乎有个判断错误,当do_zero非空时,释放内存需要memset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant