Plugging the gaps in a leaky pipeline