mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 23:56:55 +08:00
Only free if streaming [skip ci]
This commit is contained in:
@@ -225,8 +225,13 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
if (element->heaptidsLength == 0)
|
if (element->heaptidsLength == 0)
|
||||||
{
|
{
|
||||||
so->w = list_delete_last(so->w);
|
so->w = list_delete_last(so->w);
|
||||||
pfree(element);
|
|
||||||
pfree(hc);
|
if (hnsw_streaming)
|
||||||
|
{
|
||||||
|
pfree(element);
|
||||||
|
pfree(hc);
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user