Skip to content

Commit ad7f5d7

Browse files
committed
[DB][BUG] Add virtual destructor for KeyValueHolder
1 parent d6c56d1 commit ad7f5d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dbwrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ class CDBTransaction {
337337
};
338338

339339
struct KeyValueHolder {
340+
virtual ~KeyValueHolder() = default;
340341
virtual void Write(CDBBatch &batch) = 0;
341342
};
342343
typedef std::unique_ptr<KeyValueHolder> KeyValueHolderPtr;

0 commit comments

Comments
 (0)