* Destroy an OID list */
| 103 | * Destroy an OID list |
| 104 | */ |
| 105 | void |
| 106 | simple_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 |