From 84c5aa14bf736e21e09b365570ee3b02675f2a19 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 22 Oct 2023 16:11:03 -0700 Subject: [PATCH] Added comment [skip ci] --- src/hnswscan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hnswscan.c b/src/hnswscan.c index 57eddae..5ebfb16 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -207,6 +207,7 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir) Datum value = PointerGetDatum(hc->element->vec); bool isnull = false; + /* Allocate in temporary context, so no need to free */ scan->xs_itup = index_form_tuple(scan->xs_itupdesc, &value, &isnull); scan->xs_itup->t_tid = *heaptid; }