summaryrefslogtreecommitdiff
path: root/lib/tsocket
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tsocket')
-rw-r--r--lib/tsocket/tsocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tsocket/tsocket.c b/lib/tsocket/tsocket.c
index e05c8d53f5..55f1af3894 100644
--- a/lib/tsocket/tsocket.c
+++ b/lib/tsocket/tsocket.c
@@ -594,6 +594,7 @@ static void tstream_readv_done(struct tevent_req *subreq)
int sys_errno;
ret = state->ops->readv_recv(subreq, &sys_errno);
+ TALLOC_FREE(subreq);
if (ret == -1) {
tevent_req_error(req, sys_errno);
return;