diff --git a/lib/src/storage/backend/rocksdb.rs b/lib/src/storage/backend/rocksdb.rs index 0d8b53b5..e3798220 100644 --- a/lib/src/storage/backend/rocksdb.rs +++ b/lib/src/storage/backend/rocksdb.rs @@ -1012,7 +1012,7 @@ unsafe impl Sync for ErrorStatus {} impl Drop for ErrorStatus { fn drop(&mut self) { - if self.0.string.is_null() { + if !self.0.string.is_null() { unsafe { free(self.0.string as *mut c_void); }