[TS] Free arrays passed as slices from TS -> C -> Rust