Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -1202,9 +1202,8 @@ func (opts *Options) Destroy() {
if opts.ccmp != nil {
C.rocksdb_comparator_destroy(opts.ccmp)
}
if opts.cst != nil {
C.rocksdb_slicetransform_destroy(opts.cst)
}
// don't destroy the opts.cst here, it has already been
// associated with a PrefixExtractor and this will segfault
if opts.ccf != nil {
C.rocksdb_compactionfilter_destroy(opts.ccf)
}
Expand Down