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

Feature/499 Fix SWIG Eigen type maps to remove data leaks #500

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

juan-g-bonilla
Copy link
Contributor

Description

Added Py_DECREF when necessary to ensure no data leaks are happening.

Verification

Existing tests are passing, and @Mark2000 reported less leaks on testing.

@juan-g-bonilla juan-g-bonilla self-assigned this Nov 19, 2023
@juan-g-bonilla juan-g-bonilla added the bug Something isn't working label Nov 19, 2023
@juan-g-bonilla juan-g-bonilla changed the title Fix SWIG Eigen type maps to remove data leaks Feature/500 Fix SWIG Eigen type maps to remove data leaks Nov 19, 2023
@juan-g-bonilla juan-g-bonilla changed the title Feature/500 Fix SWIG Eigen type maps to remove data leaks Feature/499 Fix SWIG Eigen type maps to remove data leaks Nov 19, 2023
Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the scenario unit tests are now failing in the branch?

Hold on, trying another branch an all scenario test files are failing there as well. Might be something odd on my system.

Ok, it was a python caching thing that was causing these error. I'll pull your branch later today and try again. Sorry for the false alarm.

@schaubh schaubh force-pushed the feature/499-fix-leaks-swig-typemaps branch from 0630b20 to beb7158 Compare November 19, 2023 21:51
@schaubh schaubh dismissed their stale review November 19, 2023 22:05

Issues were on my system, not with the branch.

Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to go.

@Mark2000
Copy link
Contributor

Looks good to me. Will run some tests in the next couple weeks to see what other leaks remain.

@schaubh schaubh merged commit a83d541 into develop Nov 19, 2023
2 checks passed
@schaubh schaubh deleted the feature/499-fix-leaks-swig-typemaps branch November 19, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants