diff --git a/src/hnswscan.c b/src/hnswscan.c index 2874468..2f87e4c 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -226,6 +226,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) { so->w = list_delete_last(so->w); + /* Mark memory as free for next iteration */ if (hnsw_streaming) { pfree(element);