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.99k stars 886 forks source link

fix mem leak in Replicator::_prepare_entry #466

Closed AlexStocks closed 4 months ago

AlexStocks commented 4 months ago

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