| 248 | |
| 249 | |
| 250 | static 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 |
no outgoing calls
no test coverage detected