From 0cd0ec4fe0d3bca14431766674a3382b83993bd9 Mon Sep 17 00:00:00 2001 From: Nik Bougalis Date: Thu, 4 Sep 2014 20:52:00 -0700 Subject: [PATCH] Plug memory leak during index creation --- utilities/document/document_db.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/document/document_db.cc b/utilities/document/document_db.cc index c12a1f253f..8e15a52ca8 100644 --- a/utilities/document/document_db.cc +++ b/utilities/document/document_db.cc @@ -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; }