Skip to content

Commit

Permalink
Merge pull request #894 from ctripcorp/bugfix/memory_leak_for_zset2
Browse files Browse the repository at this point in the history
repair direct memory leak
  • Loading branch information
LanternLee authored Oct 11, 2024
2 parents af4d3ee + ed978bd commit d0bb509
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public Integer read(ByteBuf byteBuf) {
propagateCmdIfNeed(member, score.readDoubleLE());

member = null;
score.release();
score = null;
readCnt++;
if (readCnt >= len.getLenValue()) {
Expand Down Expand Up @@ -134,7 +135,10 @@ public void reset() {
}
this.state = STATE.READ_INIT;
this.member = null;
this.score = null;
if (score != null) {
score.release();
score = null;
}
}

@Override
Expand Down

0 comments on commit d0bb509

Please sign in to comment.