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

c/core/test memory leak in publish_node_birth() #269

Open
ian-abbott opened this issue Feb 20, 2023 · 0 comments · Fixed by #270
Open

c/core/test memory leak in publish_node_birth() #269

ian-abbott opened this issue Feb 20, 2023 · 0 comments · Fixed by #270

Comments

@ian-abbott
Copy link
Contributor

In "c/core/test/test.c", publish_node_birth() allocates memory pointed to by row_data but does not free it.

One possible solution is to change row_data to a local array variable and clear the array contents with an initializer or with a call to memset().

Another possible solution is to free the memory when it is no longer needed after the call init_dataset(&dataset, 2, 3, datatypes, column_keys, row_data);.

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 a pull request may close this issue.

1 participant