From 6a60795aec596757ee32dd920713b9aeb9d9b225 Mon Sep 17 00:00:00 2001 From: Kai Li Date: Mon, 17 Mar 2014 16:14:01 +0800 Subject: [PATCH] Don't create a new batch after all the feature vectors have been saved --- tools/extract_features.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/extract_features.cpp b/tools/extract_features.cpp index 0766eea..e547db5 100644 --- a/tools/extract_features.cpp +++ b/tools/extract_features.cpp @@ -163,8 +163,6 @@ int feature_extraction_pipeline(int argc, char** argv) { db->Write(leveldb::WriteOptions(), batch); LOG(ERROR)<< "Extracted features of " << image_index << " query images."; - delete batch; - batch = new leveldb::WriteBatch(); } delete batch; -- 2.7.4