1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s4:libcli: remove unneeded talloc_reference() usage

metze
This commit is contained in:
Stefan Metzmacher 2010-01-27 11:01:25 +01:00
parent 14e006747e
commit ddd595e687

View File

@ -155,11 +155,8 @@ NTSTATUS smb_raw_ntcancel(struct smbcli_request *oldreq)
* smbcli_request_send() free's oneway requests
* but we want to keep it under oldreq->ntcancel
*/
if (!talloc_reference(oldreq, req)) {
talloc_free(req);
return NT_STATUS_NO_MEMORY;
}
req->do_not_free = true;
talloc_steal(oldreq, req);
smbcli_request_send(req);