return NULL;
}
status = cli_close_recv(req);
+ TALLOC_FREE(req);
if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
return NULL;
flush_req = tevent_queue_wait_send(req,
self->ev,
send_queue);
+ if (flush_req == NULL) {
+ TALLOC_FREE(req);
+ PyErr_NoMemory();
+ return NULL;
+ }
endtime = timeval_current_ofs_msec(self->cli->timeout);
ok = tevent_req_set_endtime(flush_req,
self->ev,
tevent_req_set_callback(req, do_listing_cb, &state);
if (!py_tevent_req_wait_exc(self, req)) {
- return NT_STATUS_INTERNAL_ERROR;
+ status = NT_STATUS_INTERNAL_ERROR;
+ goto done;
}
TALLOC_FREE(req);
done:
TALLOC_FREE(mask);
+ TALLOC_FREE(req);
return status;
}
return NULL;
}
status = cli_query_security_descriptor_recv(req, NULL, &sd);
+ TALLOC_FREE(req);
if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
return NULL;
}
status = cli_set_security_descriptor_recv(req);
+ TALLOC_FREE(req);
if (!NT_STATUS_IS_OK(status)) {
PyErr_SetNTSTATUS(status);
return NULL;