diff --git a/db/c_test.c b/db/c_test.c index 95d273607..7b76badf1 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -1387,6 +1387,7 @@ int main(int argc, char** argv) { rocksdb_writebatch_put(wb, "box", 3, "c", 1); rocksdb_writebatch_delete(wb, "bar", 3); rocksdb_transactiondb_write(txn_db, woptions, wb, &err); + rocksdb_writebatch_destroy(wb); CheckTxnDBGet(txn_db, roptions, "box", "c"); CheckNoError(err);