fixed seg faults
fixed seg faults

tempbottle/cpp-raft-1,tempbottle/cpp-raft-1,osadalakmal/cpp-raft,osadalakmal/cpp-raft,tempbottle/cpp-raft-1,osadalakmal/cpp-raft,tempbottle/cpp-raft-1,osadalakmal/cpp-raft