Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #221 from MathieuBordere/bugfix/issue219/bad-free
Browse files Browse the repository at this point in the history
uv_encoding: Free correct entries pointer
  • Loading branch information
stgraber authored Jul 15, 2021
2 parents 4c71b94 + b92a910 commit c15a5d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uv_encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ int uvDecodeBatchHeader(const void *batch,
return 0;

err_after_alloc:
raft_free(entries);
raft_free(*entries);
*entries = NULL;

err:
assert(rv != 0);
Expand Down

0 comments on commit c15a5d2

Please sign in to comment.