Skip to content

Commit

Permalink
Plug memory leak during index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nbougalis committed Sep 5, 2014
1 parent 4329d74 commit 0cd0ec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/document/document_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ class DocumentDBImpl : public DocumentDB {
CreateColumnFamily(ColumnFamilyOptions(rocksdb_options_),
InternalSecondaryIndexName(index.name), &cf_handle);
if (!s.ok()) {
delete index_obj;
return s;
}

Expand Down

0 comments on commit 0cd0ec4

Please sign in to comment.