It may be uncomfortable and embarrassing, but it is not life-threatening.
Gas is eliminated by burping or passing it through the rectum.
Most people produce about 1 to 3 pints of gas a day and pass gas about 14 times a day. Gases that contain sulfur often produce the unpleasant odor of flatulence. Belching is the way most swallowed air leaves the stomach. The remaining gas is partially absorbed into the small intestine and a small amount goes into the large intestine and is released through the rectum. The undigested or unabsorbed food then passes into the large intestine, where harmless and normal bacteria break down the food.