Could be the master but if you're losing all the fluid, you should easily be able to see it. If the cylinder bore was dirty or corroded then excessive pedal travel will put the piston on a rough bit of the bore and wreck the seals. But if it's leaking, it's knackered anyway.