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

Function _dst_malloc

dset.c:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250static inline int _dst_malloc(struct dset_ctx **dsct)
251{
252 *dsct = pkg_malloc(sizeof **dsct);
253 if (*dsct==NULL) {
254 LM_ERR("oom 1\n");
255 return E_OUT_OF_MEM;
256 }
257 memset(*dsct, 0, sizeof **dsct);
258 (*dsct)->enabled = 1;
259 store_dset_ctx(*dsct);
260 return 0;
261}
262
263/* ! \brief
264 * Add a new branch to current transaction

Callers 2

append_msg_branchFunction · 0.85
set_msg_branch_attrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected