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

khash: factor out kh_release_* #107

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

Conversation

rscharfe
Copy link

@rscharfe rscharfe commented Oct 3, 2018

Add a function for releasing only the internal memory of the khash structure, but not the structure itself. This allows keeping that struct on the stack instead of allocating it using kh_init_*.

@larseggert
Copy link

Needs a kh_release() macro added, otherwise a great addition

Add a function for releasing only the internal memory of the khash
structure, but not the structure itself.  This allows keeping that
struct on the stack instead of allocating it using kh_init_*.
@rscharfe
Copy link
Author

kh_release() added, patch amended.

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

Successfully merging this pull request may close these issues.

2 participants