-
Notifications
You must be signed in to change notification settings - Fork 71
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 management in Variants #502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not yet checked if it fixes the actual bug, but in principle it looks good to me. When I have verified the fix and my comments are addressed, I am happy to merge.
The error also occurred for setting a property to a candidate, but only if the property is of type STRING.
will give the same issue as discussed before. With the explicit delete this issue is solved. The only remaining point is related to the Python gives the warning
One solution could be to change the |
Hi @JulienDoerner |
Hey @rafaelab, the The underlying problem from #493 is solved with the fixes here. |
Fine with me. But apparently there are a few comments by @lukasmerten that were not addressed (or at least, they were not marked as resolved, such that I cannot approve the PR). |
Hey @rafaelab, |
Changes adressed. Aproved by @rafaelab.
fixes #493:
The
abstractConditions
added a property to the candidate on the rejection. Up to now it only adds the keyRejected
. I added the module name as the default Value for the flag.Also the variant (in which this key is stored), does not have the right destructor. If it is deleted, the type of the variant was not passed to the
clear
function. Therefore no deletion of the variant was possible. This leaded to the bug in the memory consumption.