When a gas is released from a chemical reaction: