mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
Fix rocksmq memleak (#8564)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
db2ff92ee6
commit
075d6880a4
@ -634,7 +634,8 @@ func (rmq *rocksmq) Seek(topicName string, groupName string, msgID UniqueID) err
|
||||
|
||||
opts := gorocksdb.NewDefaultReadOptions()
|
||||
defer opts.Destroy()
|
||||
_, err = rmq.store.Get(opts, []byte(storeKey))
|
||||
val, err := rmq.store.Get(opts, []byte(storeKey))
|
||||
defer val.Free()
|
||||
if err != nil {
|
||||
log.Debug("RocksMQ: get " + storeKey + " failed")
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user