a bad petcock will do the same thing. ... everyone was insisting that the carb was to blame. I had the carb completely redone by a qualified carb guy and still leaked gas. My petcock was a vacuum fed petcock, turns out that the petcock was bad. Haven't had any trouble since changing out the petcock.
Since it's MY JOB to correct misinformation in the ENTIRE Internet
The ones I've rebuilt were not actually petcocks. (Valves) It's actually a little vacuum operated fuel pump. Vacuum (suction) from the motor sucks on (pulls) on a rubber diaphram and a one way valve allows fuel to flow in behind it from the tank.
When the vacuum goes away..., the rubber diaphragm springs back and pushes the fuel past another one way valve, and out to the carb bowl. (Sometimes there's a little spring in there to help the diaphragm)
So at most the vacuum-actuated petcock is a BACKUP to a float needle/seat that isn't sealing properly. Without vacuum pulses, gas doesn't flow. Problem (apparently) solved.
Factory manuals often refer to it as a fuel "valve" rather than a "pump" but hey, if it walks like a duck, quacks like a duck, and will, when supplied vacuum pulses, pump fuel above the level of the tank...
A lot of MCs for a LONG time have had trouble with carb floats sticking, needles & seats not sealing, (probably due to vibration) and that's why for DECADES riders would TURN OFF their fuel at the tank petcock when they parked the bike. Using a REAL petcock.
A vacuum operated petcock (pump) just adds one more level of defense against your cylinder getting filled with gasoline from a non-properly-working float while the bike is parked.
Repairing the petcock, err, pump, has just covered up your problem with the sticking float. If your float is indeed sticking your float (fuel) level is too high a lot of the time and a certain amount of gas is overflowing and just getting ...wasted. See if your carb has a little glass "inspection" window and check the fuel/float level.
Your sticking float problem may have corrected itself anyway, provided your carb was properly rebuilt, new float needles/seats installed, etc.
Some carbureted bikes overflow excess gas in the bowl onto the ground, others right into the intake where it gets burned, fouls plugs, makes the bike hard to start, etc.