summaryrefslogtreecommitdiff
path: root/source4/libcli/nbt/namequery.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/nbt/namequery.c')
-rw-r--r--source4/libcli/nbt/namequery.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/libcli/nbt/namequery.c b/source4/libcli/nbt/namequery.c
index f6744e9f14..36fbfc8dd0 100644
--- a/source4/libcli/nbt/namequery.c
+++ b/source4/libcli/nbt/namequery.c
@@ -56,8 +56,7 @@ struct nbt_name_request *nbt_name_query_send(struct nbt_name_socket *nbtsock,
timeval_current_ofs(io->in.timeout, 0), False);
if (req == NULL) goto failed;
- talloc_steal(req, packet);
-
+ talloc_free(packet);
return req;
failed:
@@ -157,8 +156,7 @@ struct nbt_name_request *nbt_name_status_send(struct nbt_name_socket *nbtsock,
timeval_current_ofs(io->in.timeout, 0), False);
if (req == NULL) goto failed;
- talloc_steal(req, packet);
-
+ talloc_free(packet);
return req;
failed: