Plug memory leak during index creation

This commit is contained in:
Nik Bougalis 2014-09-04 20:52:00 -07:00
parent 4329d74e05
commit 0cd0ec4fe0
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}