baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.92k stars 876 forks source link

fix mem leak in Replicator::_prepare_entry #466

Closed AlexStocks closed 1 month ago

AlexStocks commented 1 month ago

copy codes from https://github.com/baidu/braft/commit/c5a306817f3976f64da9a0a9d5112164392e028d