litellm/litellm-rust/crates/callbacks-legacy-python
devin-ai-integration[bot] 4eb340abe0
fix(callbacks-legacy-python): traverse and release the retained headers dict (#43274)
* fix(callbacks-legacy-python): traverse and release the retained headers dict

LegacyLogging keeps the headers dict it hands to pre_call and post_call, but
its traverse never reported that edge to the collector and close never dropped
it. A cycle a callback builds through that dict could not be collected, and a
closed call kept the dict alive until the driver dropped the whole adapter.
Visit and clear headers like body, with regression tests for both

* refactor(callbacks-legacy-python): move the test support module into its own file

---------

Co-authored-by: Yujong Lee <yujong@berri.ai>
2026-09-25 20:24:58 -07:00
..
src fix(callbacks-legacy-python): traverse and release the retained headers dict (#43274) 2026-09-25 20:24:58 -07:00
AGENTS.md refactor(rust): move credential inheritance and the SDK limits out of the legacy callback crate into a driver preflight (#43259) 2026-09-26 01:09:36 +00:00
Cargo.toml refactor(rust): move tests.rs files inline or under tests/ and drop autotests = false (#43028) 2026-09-24 20:19:00 +00:00
python_contract.json refactor(rust): move credential inheritance and the SDK limits out of the legacy callback crate into a driver preflight (#43259) 2026-09-26 01:09:36 +00:00