Skip to content

Leak report when using shared_ptr member #228

Closed Answered by wjakob
robquant asked this question in Q&A
Discussion options

You must be logged in to vote

This can indeed be an issue in Python < 3.12 — the interpreter isn't always perfectly collecting variables in the top scope and REPL.

I've found this to be more of an issue in small snippets and REPL usage as opposed to larger programs, where the logic is generally contained in functions (which don't have that issue). You can disable that warning if it bothers you, see the docs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robquant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants