Skip to content

fix for 5709: explicitly delete error references to prevent memory leaks#5710

Closed
tomasz-pankowski wants to merge 2 commits into
pallets:mainfrom
tomasz-pankowski:exception-memory-leak
Closed

fix for 5709: explicitly delete error references to prevent memory leaks#5710
tomasz-pankowski wants to merge 2 commits into
pallets:mainfrom
tomasz-pankowski:exception-memory-leak

Conversation

@tomasz-pankowski
Copy link
Copy Markdown

Fix for #5709
Add explicit "del error" statement to prevent reference cycles between exception objects and local variables. This helps the garbage collector promptly reclaim memory after request processing, which is especially important in high-traffic web applications where exception objects with traceback information can consume significant memory.

Add explicit "del error" statement to prevent reference cycles between
exception objects and local variables. This helps the garbage collector
promptly reclaim memory after request processing, which is especially
important in high-traffic web applications where exception objects with
traceback information can consume significant memory.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants