Disclosed is a respiratory treatment apparatus for leak detection and leak control. The respiratory treatment apparatus comprises sensors, a flow generator and a controller. The sensors are configured to measure pressure and flow attributable to a breathable gas. The flow generator is configured to produce the breathable gas for a patient at a pressure above atmospheric pressure. The controller has at least one processor and is coupled with the sensors and flow generator and is configured to control the flow generator to produce the breathable gas according to a pressure therapy regime. The controller includes a leak detection module configured to detect a leak event based on an analysis of a measured flow signal and a pressure adjustment module configured to make an adjustment to a therapeutic pressure supplied by the flow generator as a function of a magnitude of an output of the leak detection module, the adjustment for reducing the leak event.