A pipeline oil leak that led to fuel flowing into a major branch of the Yellow river has been brought under control, China National Petroleum Corporation has said.