diff options
Diffstat (limited to 'src/fe_utils/simple_list.c')
-rw-r--r-- | src/fe_utils/simple_list.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/fe_utils/simple_list.c b/src/fe_utils/simple_list.c index 8d605140a74..cfdb7dc87af 100644 --- a/src/fe_utils/simple_list.c +++ b/src/fe_utils/simple_list.c @@ -100,6 +100,44 @@ simple_string_list_member(SimpleStringList *list, const char *val) } /* + * Destroy an OID list + */ +void +simple_oid_list_destroy(SimpleOidList *list) +{ + SimpleOidListCell *cell; + + cell = list->head; + while (cell != NULL) + { + SimpleOidListCell *next; + + next = cell->next; + pg_free(cell); + cell = next; + } +} + +/* + * Destroy a string list + */ +void +simple_string_list_destroy(SimpleStringList *list) +{ + SimpleStringListCell *cell; + + cell = list->head; + while (cell != NULL) + { + SimpleStringListCell *next; + + next = cell->next; + pg_free(cell); + cell = next; + } +} + +/* * Find first not-touched list entry, if there is one. */ const char * |