If you detect a gas leak, immediately turn off the gas supply, open windows for ventilation, and evacuate the area. Call a professional repair service to fix the issue before using the oven again.