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 6, 2024
1 parent fb67dbb commit 9f38b3d
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 @@ -1761,6 +1761,7 @@ rocksdb::Status Redis::PKPatternMatchDel(const std::string& pattern, int32_t* re
}
}

delete iter;
*ret = total_delete;
return s;
}
Expand Down

0 comments on commit 9f38b3d

Please sign in to comment.