A work vehicle comprising: an engine; an accelerator; an accelerator operation sensor that outputs a signal indicative of an operation amount of the accelerator; a hydrostatic transmission including a traveling pump driven by the engine, a hydraulic circuit connected to the traveling pump, and a traveling motor connected to the traveling pump through the hydraulic circuit; and a controller configured to receive the signal from the accelerator operation sensor, determine a target vehicle speed from the operation amount of the accelerator, control the traveling motor and the traveling pump, determine a target flow rate of the traveling motor or the traveling pump, determine a correction amount of the target flow rate from a hydraulic pressure of the hydraulic circuit, determine a target displacement of the traveling motor or the traveling pump from the target flow rate and the correction amount determine the correction amount of the target flow rate based on a relationship between the hydraulic pressure of the hydraulic circuit and a leakage flow rate of hydraulic fluid in the hydraulic circuit, determine the target flow rate of the traveling motor from the target vehicle speed, determine the leakage flow rate as the correction amount from the hydraulic pressure of the hydraulic circuit, determine the target flow rate of the traveling pump by adding the correction amount to the target flow rate of the traveling motor, and determine the target displacement of the traveling pump from the target flow rate of the traveling pump. an engine; an accelerator; an accelerator operation sensor that outputs a signal indicative of an operation amount of the accelerator; a hydrostatic transmission including a traveling pump driven by the engine, a hydraulic circuit connected to the traveling pump, and a traveling motor connected to the traveling pump through the hydraulic circuit; and a controller configured to receive the signal from the accelerator operation sensor, determine a target vehicle speed from the operation amount of the accelerator, control the traveling motor and the traveling pump, determine a target flow rate of the traveling motor or the traveling pump, determine a correction amount of the target flow rate from a hydraulic pressure of the hydraulic circuit, determine a target displacement of the traveling motor or the traveling pump from the target flow rate and the correction amount determine the correction amount of the target flow rate based on a relationship between the hydraulic pressure of the hydraulic circuit and a leakage flow rate of hydraulic fluid in the hydraulic circuit, determine the target flow rate of the traveling motor from the target vehicle speed, determine the leakage flow rate as the correction amount from the hydraulic pressure of the hydraulic circuit, determine the target flow rate of the traveling pump by adding the correction amount to the target flow rate of the traveling motor, and determine the target displacement of the traveling pump from the target flow rate of the traveling pump. receive the signal from the accelerator operation sensor, determine a target vehicle speed from the operation amount of the accelerator, control the traveling motor and the traveling pump, determine a target flow rate of the traveling motor or the traveling pump, determine a correction amount of the target flow rate from a hydraulic pressure of the hydraulic circuit, determine a target displacement of the traveling motor or the traveling pump from the target flow rate and the correction amount determine the correction amount of the target flow rate based on a relationship between the hydraulic pressure of the hydraulic circuit and a leakage flow rate of hydraulic fluid in the hydraulic circuit, determine the target flow rate of the traveling motor from the target vehicle speed, determine the leakage flow rate as the correction amount from the hydraulic pressure of the hydraulic circuit, determine the target flow rate of the traveling pump by adding the correction amount to the target flow rate of the traveling motor, and determine the target displacement of the traveling pump from the target flow rate of the traveling pump.