PikaLabs / floyd

A raft consensus implementation that is simply and understandable
GNU General Public License v3.0
321 stars 106 forks source link

fix no nullptr check before delete #43

Open sxfworks opened 6 years ago

sxfworks commented 6 years ago

今天我在使用floyd的时候,由于floyd::init()为正确完成初始化,析构时由于worker_等空指针出core,个人感觉指针在释放之前应该进行nullptr判断。