If it's a metal latch and is missing a screw, just get a new screw and screw it back on. Also, you could use Duct tape. :) If all else fails, tie it closed or super-glue it.
Dear Lord what would we do without tape!?
it still wont hold
buy another one.
tape it shut :D