A little objection. 40 μA is not a leak, but the reverse mode current of a multi-emitter, input transistor. The collector area of transistors is doped with gold at 74S and the transistor has a low reverse gain (about Br=0.03). Therefore, the current is so small. Leakage of diodes is much less!It's the nature of the beast.
In order to make a TTL input LOW, it is necessary to sink current (meaning make current flow from the input to ground - this is "conventional" current which flows from positive to negative). For the original SN74xx standard TTL family, this current was 1.6 mA.
An open-circuit TTL input will "float" HIGH, but to be absolutely certain it is high it is best to put (or try to put) some current into the input - source current to it. For the 7400 family, this current was specified to be 40 µA, maximum - usually it was less because it was essentially reverse leakage current in a PN junction.
......