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

Function tmrec_new

time_rec.c:509–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509tmrec_p tmrec_new(char alloc)
510{
511 tmrec_p _trp;
512 if (alloc & PKG_ALLOC)
513 _trp = (tmrec_p)pkg_malloc(sizeof(tmrec_t));
514 else
515 _trp = (tmrec_p)shm_malloc(sizeof(tmrec_t));
516 if(!_trp)
517 return NULL;
518
519 tmrec_init(_trp);
520 _trp->flags = alloc;
521 return _trp;
522}
523
524void tmrec_free(tmrec *tr)
525{

Callers 2

tmrec_parseFunction · 0.85
run_time_switchFunction · 0.85

Calls 2

shm_mallocFunction · 0.85
tmrec_initFunction · 0.85

Tested by

no test coverage detected