Skip to content

Commit

Permalink
Problem: no free slice data in HasAtVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jun 28, 2024
1 parent 69a8015 commit 7d83fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Improvements

* (versiondb) [#1379](https://github.com/crypto-org-chain/cronos/pull/1379) Flush versiondb when graceful shutdown, make rocksdb upgrade smooth.
* (versiondb) [#1491](https://github.com/crypto-org-chain/cronos/pull/1491) Free slice data in HasAtVersion.

### Bug Fixes

Expand Down
1 change: 1 addition & 0 deletions versiondb/tsrocksdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (s Store) HasAtVersion(storeKey string, key []byte, version *int64) (bool,
if err != nil {
return false, err
}
defer slice.Free()
return slice.Exists(), nil
}

Expand Down

0 comments on commit 7d83fe6

Please sign in to comment.