diff --git a/internal/core/algorithm/faiss/Capi.cpp b/internal/core/algorithm/faiss/Capi.cpp index 340b8265523..9cc451f3f43 100644 --- a/internal/core/algorithm/faiss/Capi.cpp +++ b/internal/core/algorithm/faiss/Capi.cpp @@ -472,6 +472,7 @@ bool faiss_search_binaryivf( for(int i = 0; i < nq*k; i++) { D[i] = tmpD[i]; } + delete[] tmpD; return true; }