Skip to content

Commit 968da49

Browse files
committed
Problem: no free slice data in HasAtVersion
1 parent 6169d92 commit 968da49

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

CHANGELOG.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
## UNRELEASED
44

5+
### Improvements
6+
7+
* (versiondb) [#1491](https://github.com/crypto-org-chain/cronos/pull/1491) Free slice data in HasAtVersion.
8+
9+
*Jun 18, 2024*
10+
11+
## v1.3.0-rc2
12+
13+
### Improvements
14+
15+
* (rpc) [#1467](https://github.com/crypto-org-chain/cronos/pull/1467) Avoid unnecessary tx decode in tx listener.
16+
17+
### Bug Fixes
18+
19+
* [#1466](https://github.com/crypto-org-chain/cronos/pull/1466) Fix handling of pending transactions related APIs.
20+
21+
*May 21, 2024*
22+
23+
## v1.3.0-rc1
24+
525
### State Machine Breaking
626

727
* [#1407](https://github.com/crypto-org-chain/cronos/pull/1407) Add end-to-end encryption module.
@@ -12,13 +32,11 @@
1232
* (e2ee)[#1415](https://github.com/crypto-org-chain/cronos/pull/1415) Add batch keys query for e2ee module.
1333
* (e2ee)[#1421](https://github.com/crypto-org-chain/cronos/pull/1421) Validate e2ee key when register.
1434
* [#1437](https://github.com/crypto-org-chain/cronos/pull/1437) Update cometbft and cosmos-sdk dependencies.
15-
* (rpc) [#1467](https://github.com/crypto-org-chain/cronos/pull/1467) Avoid unnecessary tx decode in tx listener.
1635

1736
### Bug Fixes
1837

1938
* (rpc) [#1444](https://github.com/crypto-org-chain/cronos/pull/1444) Avoid nil pointer error when query blocks before feemarket module gets enabled.
2039
* [#1439](https://github.com/crypto-org-chain/cronos/pull/1439) Add back default prepare proposal logic.
21-
* [#1466](https://github.com/crypto-org-chain/cronos/pull/1466) Fix handling of pending transactions related APIs.
2240

2341
*May 3, 2024*
2442

versiondb/tsrocksdb/store.go

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func (s Store) HasAtVersion(storeKey string, key []byte, version *int64) (bool,
108108
if err != nil {
109109
return false, err
110110
}
111+
defer slice.Free()
111112
return slice.Exists(), nil
112113
}
113114

0 commit comments

Comments
 (0)