MCPcopy Create free account
hub / github.com/F-Stack/f-stack / csv_destroy

Function csv_destroy

tools/libxo/encoder/csv/enc_csv.c:204–219  ·  view source on GitHub ↗

* Clean up and release any data in use by this handle */

Source from the content-addressed store, hash-verified

202 * Clean up and release any data in use by this handle
203 */
204static void
205csv_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

Callers 1

csv_handlerFunction · 0.85

Calls 1

xo_buf_cleanupFunction · 0.85

Tested by

no test coverage detected