From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #1002: Fix memory leak in ivfrescan
Date: Tue, 28 Jul 2026 04:05:42 +0000
Message-ID: <gh-pgvector-pgvector-1002-c5099810869@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1002@github.com>
References: <gh-pgvector-pgvector-1002@github.com>
Thanks @zthhhhh. Confirmed that fixes it. Rather than casting, I think it'd be better to use `PointerGetDatum(NULL)` and `DatumGetPointer(so->value) != NULL`.