8000 Fixed memory context leak in HnswUpdateNeighborsOnDisk - fixes #692 · postgrespro/pgvector@d5f4a0e · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit d5f4a0e

Browse files
committed
Fixed memory context leak in HnswUpdateNeighborsOnDisk - fixes pgvector#692
1 parent 57248ba commit d5f4a0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hnswinsert.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns
561561
UpdateNeighborOnDisk(neighborElement, e, idx, m, lm, lc, index, checkExisting, building);
562562
}
563563
}
564+
565+
MemoryContextDelete(updateCtx);
564566
}
565567

566568
/*

0 commit comments

Comments
0 (0)
0