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

FlatFile, OAHash, OAFHash unit test cursor destruction issue #11

Closed
iondbproject opened this issue May 9, 2016 · 1 comment
Closed

Comments

@iondbproject
Copy link
Owner

Currently, the above three implementations leak memory, as their cursors are created but never destroyed. The reason why they're never destroyed is due to a conflict in how they're written: In certain cases, stack memory is bound to the cursor, which cursor->destroy then attempts to free. In most cases this results in a segfault. As a temporary measure, most cursor->destroy calls have been commented out.

The relevant tests should be refactored to avoid the situation of free-ing stack memory.

Reference: test_oadictionaryhandler.c:353 and 380.

@iondbproject
Copy link
Owner Author

Tests have been refactored and issue has been resolved.

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

No branches or pull requests

1 participant