summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
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 fbeee5514c..c10a21f901 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 4d264efb57..62efc48686 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 a280e15e13..4b14347277 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 687c9d5110..dd1788f4fc 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 327837835a..49d5365b9c 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 80cec9c3cc..96847fc363 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 e808b0ca1e..11bcae7eed 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 41fe83e211..0ac470366b 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 a149924e57..e7d7f755b1 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;
}