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

Function free_disposition

parser/parse_disposition.c:339–351  ·  view source on GitHub ↗

Frees the entire disposition structure (params + itself) */

Source from the content-addressed store, hash-verified

337
338/* Frees the entire disposition structure (params + itself) */
339void free_disposition( struct disposition **disp)
340{
341 struct disposition_param *param;
342
343 /* free the params */
344 while((*disp)->params) {
345 param = (*disp)->params->next;
346 pkg_free( (*disp)->params);
347 (*disp)->params = param;
348 }
349 pkg_free( *disp );
350 *disp = 0;
351}
352
353
354

Callers 3

sip_validate_hdrsFunction · 0.85
clean_hdr_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected