diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index e00858ed2a..456df5d174 100644 --- a/versiondb/tsrocksdb/store.go +++ b/versiondb/tsrocksdb/store.go @@ -274,6 +274,7 @@ func (s Store) fixDataStore(storeName string) error { if err != nil { return err } + readOpts.Destroy() clean := bytes.Equal(oldValue.Data(), iter.Value()) oldValue.Free()