Skip to content

Commit 0cd0ec4

Browse files
committed
Plug memory leak during index creation
1 parent 4329d74 commit 0cd0ec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utilities/document/document_db.cc

+1
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ class DocumentDBImpl : public DocumentDB {
736736
CreateColumnFamily(ColumnFamilyOptions(rocksdb_options_),
737737
InternalSecondaryIndexName(index.name), &cf_handle);
738738
if (!s.ok()) {
739+
delete index_obj;
739740
return s;
740741
}
741742

0 commit comments

Comments
 (0)