Skip to content

Commit

Permalink
when associated with options no need to destroy the tranform
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed Jan 10, 2019
1 parent 83f688c commit 881044d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,9 @@ func (opts *Options) Destroy() {
if opts.ccmp != nil {
C.rocksdb_comparator_destroy(opts.ccmp)
}
if opts.cst != nil {
C.rocksdb_slicetransform_destroy(opts.cst)
}
// if opts.cst != nil {
// C.rocksdb_slicetransform_destroy(opts.cst)
// }
if opts.ccf != nil {
C.rocksdb_compactionfilter_destroy(opts.ccf)
}
Expand Down

0 comments on commit 881044d

Please sign in to comment.