mirror of https://github.com/facebook/rocksdb.git
Plug memory leak during index creation
This commit is contained in:
parent
4329d74e05
commit
0cd0ec4fe0
|
@ -736,6 +736,7 @@ class DocumentDBImpl : public DocumentDB {
|
||||||
CreateColumnFamily(ColumnFamilyOptions(rocksdb_options_),
|
CreateColumnFamily(ColumnFamilyOptions(rocksdb_options_),
|
||||||
InternalSecondaryIndexName(index.name), &cf_handle);
|
InternalSecondaryIndexName(index.name), &cf_handle);
|
||||||
if (!s.ok()) {
|
if (!s.ok()) {
|
||||||
|
delete index_obj;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue