From d402dd9dce2bc080d73728f4e15c649698457194 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Wed, 24 Apr 2019 16:25:50 +0800 Subject: [PATCH] fix(db): code fix Former-commit-id: fbb9040ada2c355dad1e13526f8f16c36e155716 --- cpp/src/db/DBImpl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index a05d6001f2..b932a0ad36 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -96,7 +96,6 @@ Status DBImpl::search(const std::string &group_id, size_t k, size_t nq, index->add_with_ids(file_index->ntotal, dynamic_cast(file_index->index)->xb.data(), file_index->id_map.data()); - delete file_index; } {