-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fixed memory leak #79
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed open PyObject variables in convert_latlon_arr and removed objects that were stolen too many times.
Freed memory in remaining array functions.
Updated the changelog.
Added unit tests for large arrays. Previously, arrays this large caused seg faults due to memory leaks.
Added unit tests for the MLT array conversions. Also added test for RuntimeError messages.
Made the warning message clearer that the problem is with the input, not the code.
Added an additional logging message test and improved style of existing logger tests to conform to pytest standards.
Remove the sys import, as it's no longer used.
Removed `assert` calls to appease codacy.
Improved the comments and syntax, attempting to find errors.
Updated the strict flag.
The code occasionally segfaults (regularly in tests). Trying to figure out why. |
Re-add some of the necessary metadata back to the setup.cfg file.
Don't attempt to free data input into the C wrappers, these are needed outside of the C functions.
Try to remove some of the new metadata lines as make is failing.
Pull Request Test Coverage Report for Build 3998919162
💛 - Coveralls |
Pull Request Test Coverage Report for Build 3998919162
💛 - Coveralls |
@dinsmoro would you mind testing this branch? |
This branch fixes the memory leak issue! Thanks for solving it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There was a memory leak due to a lack of freeing PyObject pointers in the C code. Fixes #74 and #75 by clarifying the existing logger message.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Make sure to re-install AACGMV2 before testing, since the C code has to be re-compiled. Also added two new unit tests that would have segfaulted previously.
Test Configuration:
Checklist:
develop
(notmain
) branchChangelog.rst
, summarising the changesAUTHORS.rst