From ddd595e687aa24f78de71ba0f0ea74354f95e3d1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Jan 2010 11:01:25 +0100 Subject: s4:libcli: remove unneeded talloc_reference() usage metze --- source4/libcli/raw/rawnotify.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/libcli/raw/rawnotify.c b/source4/libcli/raw/rawnotify.c index b277a2c7da..2155076dd7 100644 --- a/source4/libcli/raw/rawnotify.c +++ b/source4/libcli/raw/rawnotify.c @@ -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); -- cgit