summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-09-28 19:48:26 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-29 10:09:25 +0200
commitfaa039ef463e681a28cacd7dda44961219f7b8c6 (patch)
tree8afd27002fb1f7368ba6cbbe3f225f3c9b7febb3 /libcli/smb
parentf0f310c21d0d3863323a7759be104ee3d2d6c23d (diff)
downloadsamba-faa039ef463e681a28cacd7dda44961219f7b8c6.tar.gz
libcli/smb: use an explicit TALLOC_FREE(subreq) in smb2cli_*
metze
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/smb2cli_close.c1
-rw-r--r--libcli/smb/smb2cli_create.c1
-rw-r--r--libcli/smb/smb2cli_flush.c1
-rw-r--r--libcli/smb/smb2cli_ioctl.c1
-rw-r--r--libcli/smb/smb2cli_query_directory.c1
-rw-r--r--libcli/smb/smb2cli_query_info.c1
-rw-r--r--libcli/smb/smb2cli_read.c1
-rw-r--r--libcli/smb/smb2cli_set_info.c1
-rw-r--r--libcli/smb/smb2cli_write.c1
9 files changed, 9 insertions, 0 deletions
diff --git a/libcli/smb/smb2cli_close.c b/libcli/smb/smb2cli_close.c
index fbeee5514c0..c10a21f901c 100644
--- a/libcli/smb/smb2cli_close.c
+++ b/libcli/smb/smb2cli_close.c
@@ -83,6 +83,7 @@ static void smb2cli_close_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, NULL, NULL,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_create.c b/libcli/smb/smb2cli_create.c
index 4d264efb575..62efc48686a 100644
--- a/libcli/smb/smb2cli_create.c
+++ b/libcli/smb/smb2cli_create.c
@@ -172,6 +172,7 @@ static void smb2cli_create_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_flush.c b/libcli/smb/smb2cli_flush.c
index a280e15e137..4b143472778 100644
--- a/libcli/smb/smb2cli_flush.c
+++ b/libcli/smb/smb2cli_flush.c
@@ -81,6 +81,7 @@ static void smb2cli_flush_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, NULL, NULL,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_ioctl.c b/libcli/smb/smb2cli_ioctl.c
index 687c9d5110b..dd1788f4fc4 100644
--- a/libcli/smb/smb2cli_ioctl.c
+++ b/libcli/smb/smb2cli_ioctl.c
@@ -178,6 +178,7 @@ static void smb2cli_ioctl_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_query_directory.c b/libcli/smb/smb2cli_query_directory.c
index 327837835a8..49d5365b9c4 100644
--- a/libcli/smb/smb2cli_query_directory.c
+++ b/libcli/smb/smb2cli_query_directory.c
@@ -121,6 +121,7 @@ static void smb2cli_query_directory_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_query_info.c b/libcli/smb/smb2cli_query_info.c
index 80cec9c3cc9..96847fc3637 100644
--- a/libcli/smb/smb2cli_query_info.c
+++ b/libcli/smb/smb2cli_query_info.c
@@ -133,6 +133,7 @@ static void smb2cli_query_info_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_read.c b/libcli/smb/smb2cli_read.c
index e808b0ca1ed..11bcae7eede 100644
--- a/libcli/smb/smb2cli_read.c
+++ b/libcli/smb/smb2cli_read.c
@@ -103,6 +103,7 @@ static void smb2cli_read_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, state, &iov,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_set_info.c b/libcli/smb/smb2cli_set_info.c
index 41fe83e211e..0ac470366b3 100644
--- a/libcli/smb/smb2cli_set_info.c
+++ b/libcli/smb/smb2cli_set_info.c
@@ -111,6 +111,7 @@ static void smb2cli_set_info_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, NULL, NULL,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}
diff --git a/libcli/smb/smb2cli_write.c b/libcli/smb/smb2cli_write.c
index a149924e573..e7d7f755b14 100644
--- a/libcli/smb/smb2cli_write.c
+++ b/libcli/smb/smb2cli_write.c
@@ -104,6 +104,7 @@ static void smb2cli_write_done(struct tevent_req *subreq)
status = smb2cli_req_recv(subreq, NULL, NULL,
expected, ARRAY_SIZE(expected));
+ TALLOC_FREE(subreq);
if (tevent_req_nterror(req, status)) {
return;
}