git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14e0067
)
s4:libcli: remove unneeded talloc_reference() usage
author
Stefan Metzmacher
<metze@samba.org>
Wed, 27 Jan 2010 10:01:25 +0000
(11:01 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 29 Jan 2010 10:16:13 +0000
(11:16 +0100)
metze
source4/libcli/raw/rawnotify.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/rawnotify.c
b/source4/libcli/raw/rawnotify.c
index b277a2c7da929cbe2f4d09d673da9aec2faae2a1..2155076dd76335cac99985adcaa4a0fa100ccb9a 100644
(file)
--- 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);