git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09bd97
)
libnbt: Use TALLOC_FREE
author
Volker Lendecke
<vl@samba.org>
Sat, 3 Feb 2018 12:48:35 +0000
(12:48 +0000)
committer
Ralph Boehme
<slow@samba.org>
Tue, 13 Feb 2018 15:42:22 +0000
(16:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/nbt/nbtsocket.c
patch
|
blob
|
history
diff --git
a/libcli/nbt/nbtsocket.c
b/libcli/nbt/nbtsocket.c
index dacacae9f50ec0ac53c99539ff1155117db2fbd0..d7abb1bf30b89e16c8f0b870a428c53e868369a7 100644
(file)
--- a/
libcli/nbt/nbtsocket.c
+++ b/
libcli/nbt/nbtsocket.c
@@
-45,10
+45,7
@@
static int nbt_name_request_destructor(struct nbt_name_request *req)
idr_remove(req->nbtsock->idr, req->name_trn_id);
req->name_trn_id = 0;
}
- if (req->te) {
- talloc_free(req->te);
- req->te = NULL;
- }
+ TALLOC_FREE(req->te);
if (req->nbtsock->send_queue == NULL) {
TEVENT_FD_NOT_WRITEABLE(req->nbtsock->fde);
}