Skip to content

Commit

Permalink
delete iter before return
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshaoyi committed Jul 8, 2024
1 parent 9f38b3d commit 6976fee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/src/redis_strings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,7 @@ rocksdb::Status Redis::PKPatternMatchDel(const std::string& pattern, int32_t* re
batch.Clear();
} else {
*ret = total_delete;
delete iter;
return s;
}
}
Expand Down

0 comments on commit 6976fee

Please sign in to comment.