summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-07 18:46:30 +0100
committerVolker Lendecke <vl@samba.org>2009-02-07 19:25:34 +0100
commit9941e730ca239290ffee2b8ab105552a0ff1b002 (patch)
tree51cf5257d5bbd9ba2684a01888ad67ff156e5e2f
parentca701cfd522fe44fbc6c38ed29472ffe8a2be809 (diff)
downloadsamba-9941e730ca239290ffee2b8ab105552a0ff1b002.tar.gz
samba-9941e730ca239290ffee2b8ab105552a0ff1b002.tar.bz2
samba-9941e730ca239290ffee2b8ab105552a0ff1b002.zip
Fix memleaks in chain_reply for async requests
-rw-r--r--source3/smbd/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index c9fc1fbb6a..8539e04bd5 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1623,6 +1623,7 @@ void chain_reply(struct smb_request *req)
exit_server_cleanly("chain_reply: srv_send_smb "
"failed.");
}
+ TALLOC_FREE(req);
return;
}
@@ -1737,6 +1738,7 @@ void chain_reply(struct smb_request *req)
IS_CONN_ENCRYPTED(req->conn)||req->encrypted)) {
exit_server_cleanly("construct_reply: srv_send_smb failed.");
}
+ TALLOC_FREE(req);
}
/****************************************************************************