diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-01-27 11:01:25 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-01-29 11:16:13 +0100 |
commit | ddd595e687aa24f78de71ba0f0ea74354f95e3d1 (patch) | |
tree | f7a0452a586b4fe2a8a485bc1e9a69bd8f28824c /source4 | |
parent | 14e006747eb28b473e5c8070ef021600e1adeeca (diff) | |
download | samba-ddd595e687aa24f78de71ba0f0ea74354f95e3d1.tar.gz samba-ddd595e687aa24f78de71ba0f0ea74354f95e3d1.tar.bz2 samba-ddd595e687aa24f78de71ba0f0ea74354f95e3d1.zip |
s4:libcli: remove unneeded talloc_reference() usage
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/rawnotify.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |