Alprazolam is is a potent , short-acting benzodiazepine anxiolytic — a minor tranquilizer , used for the treatment of anxiety disorders , especially of panic disorder , but also in the treatment of generalized anxiety disorder ( GAD ) or social anxiety disorder .