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

Recover keys and values #3

Open
eduardonunesp opened this issue Jan 31, 2014 · 3 comments
Open

Recover keys and values #3

eduardonunesp opened this issue Jan 31, 2014 · 3 comments

Comments

@eduardonunesp
Copy link

How to recover keys and values to cleanup with memory free ?

@adfaure
Copy link

adfaure commented Dec 1, 2016

Hello, did you find a solution ?
The implementation seems very nice, however the key attribute will leak because we never have the possibility to free it. (Unless we keep it elsewhere).

Thanks.
Adrien

@eduardonunesp
Copy link
Author

Nope, sorry

@GF-Huang
Copy link

GF-Huang commented Dec 20, 2018

See the main.c, it put the key into value struct, the pass &value.key to hashmap_put as key paramater,
you only need to free the value struct that you alloc previously.

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

3 participants