Permalink
Browse files

memory leak of proposer_propose and paxos_propose

  • Loading branch information...
1 parent 6aac162 commit fe8014ef42960639c0faa525dbde31f3065b16f2 @glzhao glzhao committed Apr 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/paxos.c
View
@@ -287,6 +287,7 @@ static void proposer_propose(struct paxos_space *ps,
msglen + ps->valuelen);
}
}
+ free(message);
}
static void proposer_commit(struct paxos_space *ps,
@@ -800,6 +801,7 @@ int paxos_propose(pi_handle_t handle, void *value, int round)
}
}
+ free(msg);
return 0;
}

0 comments on commit fe8014e

Please sign in to comment.