mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-07 13:10:56 +08:00
@@ -186,9 +186,6 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
||||
Datum value = PointerGetDatum(hc->element->vec);
|
||||
bool isnull = false;
|
||||
|
||||
if (scan->xs_itup)
|
||||
pfree(scan->xs_itup);
|
||||
|
||||
scan->xs_itup = index_form_tuple(scan->xs_itupdesc, &value, &isnull);
|
||||
scan->xs_itup->t_tid = *tid;
|
||||
}
|
||||
@@ -233,9 +230,6 @@ hnswendscan(IndexScanDesc scan)
|
||||
if (BufferIsValid(so->buf))
|
||||
ReleaseBuffer(so->buf);
|
||||
|
||||
if (scan->xs_itup)
|
||||
pfree(scan->xs_itup);
|
||||
|
||||
MemoryContextDelete(so->tmpCtx);
|
||||
|
||||
pfree(so);
|
||||
|
||||
Reference in New Issue
Block a user