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

[PYTHON] Memory leak in iter_errors #325

Closed
Stranger6667 opened this issue Dec 7, 2021 · 2 comments
Closed

[PYTHON] Memory leak in iter_errors #325

Stranger6667 opened this issue Dec 7, 2021 · 2 comments

Comments

@Stranger6667
Copy link
Owner

import jsonschema_rs

schema = {"type": "integer"}
instance = ""

for _ in range(100000):
    list(jsonschema_rs.iter_errors(schema, instance))

It looks like ValidationError instances are not deallocated

@Stranger6667
Copy link
Owner Author

Fixed in upstream - PyO3/pyo3#2026

Will update the dependency once the new version is released

@Stranger6667
Copy link
Owner Author

Closing this as PyO3 was updated to 0.16.4

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