You should strive to always carry your pistol in a holster or other device designed to carry the type of pistol you are carrying. Carrying one in a pocket or in the waistband of your pants is not a smart idea. Shame on me for sometimes carrying one in my pocket, but it is unlikely I would ever shoot myself like the guy in the linked article shot himself if only because rarely is there a round in the chamber when I do it that way. That is the second person I know of who shot himself where this guy got it. Ouch.
A hat tip to Larry H. for the link.
All the best,