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

[🐛] - Memory leak in free_dict #4

Open
obfuscatedgenerated opened this issue Jun 16, 2023 · 2 comments
Open

[🐛] - Memory leak in free_dict #4

obfuscatedgenerated opened this issue Jun 16, 2023 · 2 comments
Labels

Comments

@obfuscatedgenerated
Copy link
Owner

free_dict does not free every entry in the array

@obfuscatedgenerated obfuscatedgenerated changed the title Memory leak in free_dict [🐛] - Memory leak in free_dict Jun 16, 2023
@obfuscatedgenerated
Copy link
Owner Author

// TODO: add marker if keys and/or value needs to be freed for free_dict, or perhaps use special struct for each key/value instead of void*

@obfuscatedgenerated
Copy link
Owner Author

keys should be char *, not void *. keys must be strings since we use strcmp on them in get_item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant