mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user