MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / free_csv_record

Function free_csv_record

lib/csv.c:222–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void free_csv_record(csv_record *record)
223{
224 enum csv_flags flags_holder;
225 str_list *prev;
226
227 if (!record)
228 return;
229
230 flags_holder = *(enum csv_flags *)(record + 1);
231 if (flags_holder & CSV_SHM)
232 free_f = osips_shm_free;
233 else
234 free_f = osips_pkg_free;
235
236 while (record) {
237 prev = record;
238 record = record->next;
239
240 if (flags_holder & CSV_DUP_FIELDS)
241 free_f(prev->s.s);
242
243 free_f(prev);
244 }
245}
246
247static int check_quote_csv_record(str *val, int *escape)
248{

Callers 15

fixup_named_flagsFunction · 0.85
tr_eval_csvFunction · 0.85
parse_match_domainsFunction · 0.85
parse_match_addressesFunction · 0.85
parse_partitionFunction · 0.85
tcp_store_pathFunction · 0.85
get_mysql_tls_domFunction · 0.85
fixup_qopFunction · 0.85
init_pres_clusteringFunction · 0.85
qr_parse_extra_statsFunction · 0.85
parse_config_stringFunction · 0.85
parse_collectionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_csv_simpleFunction · 0.68
test_csv_rfc_4180Function · 0.68