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

heap_sort 内存泄露 #11

Open
lzl124631x opened this issue Feb 27, 2014 · 1 comment
Open

heap_sort 内存泄露 #11

lzl124631x opened this issue Feb 27, 2014 · 1 comment

Comments

@lzl124631x
Copy link

heap_sort中调用heap_create创建一个heap然后又将heap->elems指向数组a, 可是heap_create里面已经分配了elems的内存, 这样将导致heap_create里面分配的elems内存悬空, 导致内存泄露.

@soulmachine
Copy link
Owner

感谢,我抽时间看看。

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

2 participants