diff --git a/CHANGELOG.md b/CHANGELOG.md index c7a53dd650..5a1e723cb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ * [#1484](https://github.com/crypto-org-chain/cronos/pull/1484), [#1487](https://github.com/crypto-org-chain/cronos/pull/1487) Respect gas that is wanted to be returned by the ante handler. * [#1488](https://github.com/crypto-org-chain/cronos/pull/1488) Enable optimistic execution. * [#1490](https://github.com/crypto-org-chain/cronos/pull/1490) Update cometbft to v0.38.8. +* [#1491](https://github.com/crypto-org-chain/cronos/pull/1491) Free slice data in HasAtVersion. ### Bug Fixes diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index 18e98542b5..44f82afb2b 100644 --- a/versiondb/tsrocksdb/store.go +++ b/versiondb/tsrocksdb/store.go @@ -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 }