MCPcopy Create free account
hub / github.com/apache/cloudberry / pqFreeCommandQueue

Function pqFreeCommandQueue

src/interfaces/libpq/fe-connect.c:597–609  ·  view source on GitHub ↗

* pqFreeCommandQueue * Free all the entries of PGcmdQueueEntry queue passed. */

Source from the content-addressed store, hash-verified

595 * Free all the entries of PGcmdQueueEntry queue passed.
596 */
597static void
598pqFreeCommandQueue(PGcmdQueueEntry *queue)
599{
600 while (queue != NULL)
601 {
602 PGcmdQueueEntry *cur = queue;
603
604 queue = cur->next;
605 if (cur->query)
606 free(cur->query);
607 free(cur);
608 }
609}
610
611/*
612 * pqDropServerData

Callers 1

pqDropServerDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected