req = tevent_wakeup_send(state->mem_ctx,
state->ev_ctx,
timeval_current_ofs(1, 0));
- if (tevent_req_nomem(state->mem_ctx, req)) {
+ if (req == NULL) {
talloc_free(state);
return NT_STATUS_NO_MEMORY;
}
subreq = tevent_wakeup_send(state->mem_ctx,
state->ev_ctx,
timeval_current_ofs(MONITOR_WAIT_TIME, 0));
- if (tevent_req_nomem(state->mem_ctx, subreq)) {
+ if (subreq == NULL) {
talloc_free(state);
return;
}
subreq = tevent_wakeup_send(state->mem_ctx,
state->ev_ctx,
timeval_current_ofs(state->wait_time, 0));
- if (tevent_req_nomem(state->mem_ctx, subreq)) {
+ if (subreq == NULL) {
talloc_free(state);
return;
}
subreq = tevent_wakeup_send(state->mem_ctx,
state->ev_ctx,
timeval_current_ofs(MONITOR_WAIT_TIME, 0));
- if (tevent_req_nomem(state->mem_ctx, subreq)) {
+ if (subreq == NULL) {
talloc_free(state);
return;
}