mirror of https://github.com/grpc/grpc.git
Fix use after free (#28840)
Previously we'd use an explicit arena->Destroy() call to free memory. This change makes the arena a scoped pointer, and in doing so lets the grpc_metadata_batch destructors run prior to the arena being destroyed, preventing a use-after-free we've seen in production code.pull/28827/head^2
parent
b458db9246
commit
66cf5ea6e0
2 changed files with 6 additions and 7 deletions
Loading…
Reference in new issue