Fix c_test ASAN failure

Summary:
Fix c_test missing deletion of write batch pointer.
Closes https://github.com/facebook/rocksdb/pull/2725

Differential Revision: D5613866

Pulled By: yiwu-arbug

fbshipit-source-id: bf3f59a6812178577c9c25bae558ef36414a1f51
This commit is contained in:
yiwu-arbug 2017-08-11 12:56:26 -07:00 committed by Facebook Github Bot
parent e5a1b727c0
commit 3f5888430a

View File

@ -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);