Fixed warning [skip ci]

This commit is contained in:
Andrew Kane
2024-09-20 13:56:27 -07:00
parent c6493415b2
commit f6ebc5d708

View File

@@ -938,14 +938,14 @@ HnswSearchLayer(char *base, Datum q, List *ep, int ef, int lc, Relation index, F
/* No need to decrement wlen */
if (wlen > ef)
{
HnswPairingHeapNode *node = pairingheap_container(HnswPairingHeapNode, w_node, pairingheap_remove_first(W));
HnswCandidate *hc = node->inner;
HnswPairingHeapNode *furthestNode = pairingheap_container(HnswPairingHeapNode, w_node, pairingheap_remove_first(W));
HnswCandidate *hc = furthestNode->inner;
if (discarded != NULL)
*discarded = lappend(*discarded, hc);
/* TODO */
/* pfree(node); */
/* pfree(furthestNode); */
}
}
}