Leaking is no indication of your ability to breastfeed or produce milk.
If you're concerned about being able to breastfeed, I highly suggest getting the phone number for a lactation consultant to have on hand for when you get home (lots of hospital LCs will make themselves available, and some hospitals have breast feeding support groups), or look up your local La Leche League. They have people that will come to your house for free and help you with breast feeding issues. It might be more beneficial than just a can of formula, if you're serious about BF.