Skip to content

Commit

Permalink
Raft server's nodes vector is not freed when raft_free is invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
sturcotte06 committed Mar 15, 2019
1 parent 97d643f commit 2d138d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/raft_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ void raft_free(raft_server_t* me_)
raft_server_private_t* me = (raft_server_private_t*)me_;

log_free(me->log);
if (me->nodes)
__raft_free(me->nodes);
__raft_free(me_);
}

Expand Down

0 comments on commit 2d138d7

Please sign in to comment.