Offer it free on Freecycle/Craigslist or stick it on the curb near your trash. Someone who could use it may have the means to fix or work around the broken latch.
What you shouldn't do, is give anything broken to a charity. Don't increase their disposal costs by giving them unsalable goods.