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

Function simple_oid_list_destroy

src/fe_utils/simple_list.c:105–119  ·  view source on GitHub ↗

* Destroy an OID list */

Source from the content-addressed store, hash-verified

103 * Destroy an OID list
104 */
105void
106simple_oid_list_destroy(SimpleOidList *list)
107{
108 SimpleOidListCell *cell;
109
110 cell = list->head;
111 while (cell != NULL)
112 {
113 SimpleOidListCell *next;
114
115 next = cell->next;
116 pg_free(cell);
117 cell = next;
118 }
119}
120
121/*
122 * Destroy a string list

Callers

nothing calls this directly

Calls 1

pg_freeFunction · 0.85

Tested by

no test coverage detected