Release a request.
| 3258 | |
| 3259 | // Release a request. |
| 3260 | ISC_STATUS API_ROUTINE isc_release_request(ISC_STATUS* userStatus, isc_req_handle* reqHandle) |
| 3261 | { |
| 3262 | StatusVector status(userStatus); |
| 3263 | CheckStatusWrapper statusWrapper(&status); |
| 3264 | |
| 3265 | try |
| 3266 | { |
| 3267 | RefPtr<YRequest> request(translateHandle(requests, reqHandle)); |
| 3268 | request->free(&statusWrapper); |
| 3269 | |
| 3270 | if (!(status.getState() & IStatus::STATE_ERRORS)) |
| 3271 | *reqHandle = 0; |
| 3272 | } |
| 3273 | catch (const Exception& e) |
| 3274 | { |
| 3275 | e.stuffException(&statusWrapper); |
| 3276 | } |
| 3277 | |
| 3278 | return status[1]; |
| 3279 | } |
| 3280 | |
| 3281 | |
| 3282 | // Provide information on blob object. |
nothing calls this directly
no test coverage detected