fix: release COPY and MOVE path temporaries

This commit is contained in:
Hermes Agent
2026-09-27 12:29:21 +00:00
parent 8aa1e49658
commit 0b22ebc58b
4 changed files with 55 additions and 3 deletions
+4
View File
@@ -92,3 +92,7 @@ The validator runs 2,000 prompt/input operations with AddressSanitizer, Undefine
## GET KEY temporary-value cleanup
`GET ... KEY ... AS ...` releases its evaluated map copy and key value after storing the selected value. `python3 tools/validate_get_key_expression_cleanup.py` runs 2,000 lookups under ASan/UBSan/LSan; before the cleanup it reproduced 1,004,000 bytes leaked, and after it passes with the expected output and no reported leaks.
## COPY/MOVE expression temporary cleanup
`COPY FILE ... TO ...` and `MOVE FILE ... TO ...` release both evaluated path values after converting them to owned path strings. `python3 tools/validate_copy_move_expression_cleanup.py` runs 1,000 copy/move pairs under ASan/UBSan/LSan; before the cleanup it reproduced 74,000 bytes leaked across 4,000 path-expression values, and after it passes with no reported leaks.