Fix memleaks in chain_reply for async requests
authorVolker Lendecke <vl@samba.org>
Sat, 7 Feb 2009 17:46:30 +0000 (18:46 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 7 Feb 2009 18:25:34 +0000 (19:25 +0100)
source3/smbd/process.c

index c9fc1fbb6a53c3b5b76a1da33c93456240a237ce..8539e04bd50c892a4df7a4d8ce6cf6f7a9fc6758 100644 (file)
@@ -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);
 }
 
 /****************************************************************************