A lorry crashed and was leaking diesel which had to be absorbed quickly - before it could get into bodies of water, potentially harming people and animals.