* Clean up and release any data in use by this handle */
| 202 | * Clean up and release any data in use by this handle |
| 203 | */ |
| 204 | static void |
| 205 | csv_destroy (xo_handle_t *xop UNUSED, csv_private_t *csv) |
| 206 | { |
| 207 | /* Clean up */ |
| 208 | xo_buf_cleanup(&csv->c_data); |
| 209 | xo_buf_cleanup(&csv->c_name_buf); |
| 210 | xo_buf_cleanup(&csv->c_value_buf); |
| 211 | #ifdef CSV_STACK_IS_NEEDED |
| 212 | xo_buf_cleanup(&csv->c_stack_buf); |
| 213 | #endif /* CSV_STACK_IS_NEEDED */ |
| 214 | |
| 215 | if (csv->c_leaf) |
| 216 | xo_free(csv->c_leaf); |
| 217 | if (csv->c_path_buf) |
| 218 | xo_free(csv->c_path_buf); |
| 219 | } |
| 220 | |
| 221 | /* |
| 222 | * Return the element name at the top of the path stack. This is the |
no test coverage detected