Skip to content

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

@rscharfe
Copy link
Author

kh_release() added, patch amended.

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_*.
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