| 138 | } |
| 139 | |
| 140 | static void mi_script_free_request(mi_request_t *req, int shared) |
| 141 | { |
| 142 | if (!req) |
| 143 | return; |
| 144 | if (shared) |
| 145 | _init_mi_shm_mem_hooks(); |
| 146 | else |
| 147 | _init_mi_sys_mem_hooks(); |
| 148 | |
| 149 | if (req->req_obj) |
| 150 | cJSON_Delete(req->req_obj); |
| 151 | if (shared) |
| 152 | shm_free(req); |
| 153 | _init_mi_pkg_mem_hooks(); |
| 154 | } |
| 155 | |
| 156 | static mi_request_t *mi_script_parse_request(str *method, str *params, |
| 157 | pv_spec_p attrs, pv_spec_p vals, int shared) |
no test coverage detected