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

Function simple_string_list_destroy

src/fe_utils/simple_list.c:124–138  ·  view source on GitHub ↗

* Destroy a string list */

Source from the content-addressed store, hash-verified

122 * Destroy a string list
123 */
124void
125simple_string_list_destroy(SimpleStringList *list)
126{
127 SimpleStringListCell *cell;
128
129 cell = list->head;
130 while (cell != NULL)
131 {
132 SimpleStringListCell *next;
133
134 next = cell->next;
135 pg_free(cell);
136 cell = next;
137 }
138}
139
140/*
141 * Find first not-touched list entry, if there is one.

Callers 1

reindex_one_databaseFunction · 0.85

Calls 1

pg_freeFunction · 0.85

Tested by

no test coverage detected