Skip to content

Commit

Permalink
Fix leak in rdbSaveToSlavesSockets
Browse files Browse the repository at this point in the history
  • Loading branch information
amitnagl committed Apr 9, 2024
1 parent 74b0ca5 commit 241b130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3630,6 +3630,7 @@ int rdbSaveToSlavesSockets(int req, rdbSaveInfo *rsi) {
}
if (direct) {
rioFreeConnset(&rdb);
zfree(conns);
} else {
rioFreeFd(&rdb);
}
Expand Down

0 comments on commit 241b130

Please sign in to comment.