diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index 1330420623..de15263d9f 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()