From: Volker Lendecke Date: Sat, 7 Feb 2009 17:46:30 +0000 (+0100) Subject: Fix memleaks in chain_reply for async requests X-Git-Tag: samba-4.0.0alpha7~416^2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9941e730ca239290ffee2b8ab105552a0ff1b002;p=thirdparty%2Fsamba.git Fix memleaks in chain_reply for async requests --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index c9fc1fbb6a5..8539e04bd50 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); } /****************************************************************************