Fix delete in db_ttl.cc

Summary: should delete the proper variable

Test Plan: make all check

Reviewers: haobo, dhruba

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12921
This commit is contained in:
Mayank Agarwal
2013-09-13 10:40:27 -07:00
parent eeb90c7ee9
commit e2a093a6c3

View File

@@ -56,7 +56,7 @@ Status UtilityDB::OpenTtlDB(
Status st;
*dbptr = new DBWithTTL(ttl, options, dbname, st, read_only);
if (!st.ok()) {
delete dbptr;
delete *dbptr;
}
return st;
}