Skip to content

Commit

Permalink
fix memory leak by deleting tmpD
Browse files Browse the repository at this point in the history
  • Loading branch information
datelier committed Aug 15, 2024
1 parent ccfc94b commit 5ca4cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/core/algorithm/faiss/Capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ bool faiss_search_binaryivf(
for(int i = 0; i < nq*k; i++) {
D[i] = tmpD[i];
}
delete[] tmpD;

return true;
}
Expand Down

0 comments on commit 5ca4cbb

Please sign in to comment.