From d5f4a0e43515caed7a7ef287e317e1bd238acddd Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 8 Oct 2024 12:21:26 -0700 Subject: [PATCH] Fixed memory context leak in HnswUpdateNeighborsOnDisk - fixes #692 --- src/hnswinsert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hnswinsert.c b/src/hnswinsert.c index 2f18b12..2dfd8d3 100644 --- a/src/hnswinsert.c +++ b/src/hnswinsert.c @@ -561,6 +561,8 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns UpdateNeighborOnDisk(neighborElement, e, idx, m, lm, lc, index, checkExisting, building); } } + + MemoryContextDelete(updateCtx); } /*