Only free if streaming [skip ci]

This commit is contained in:
Andrew Kane
2024-09-21 16:15:00 -07:00
parent 4773931b11
commit 72aa53ef54

View File

@@ -225,8 +225,13 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
if (element->heaptidsLength == 0)
{
so->w = list_delete_last(so->w);
pfree(element);
pfree(hc);
if (hnsw_streaming)
{
pfree(element);
pfree(hc);
}
continue;
}