Files
Zijie Zhao 8e89e0b89f Fix VSIM FILTER memory leaks on duplicate option and error paths (#14898)
`VSIM_RedisCommand` in `vset.c` had two memory leak bugs related to the
compiled FILTER expression (`exprstate` allocated by `exprCompile`):

1. Duplicate FILTER: When two FILTER options are provided in a single
VSIM command, the second `exprCompile` overwrites `filter_expr` without
freeing the first. Only the last one is freed in `VSIM_execute cleanup`.
   Fix: call `exprFree` on the existing `filter_expr` before reassigning.

2. Error path leaks: When FILTER is parsed successfully but a later
option fails validation (invalid COUNT/EF/EPSILON/FILTER-EF or unknown
option), the error return frees `vec` but not `filter_expr`.
   Fix: add `exprFree(filter_expr)` to all five error return paths.
2026-03-27 12:27:24 +08:00
..
2025-08-12 11:45:35 +08:00
2025-07-18 18:19:14 +08:00