Oxygen produced during photosynthesis can only escape from the leaf through the opened stomata. The stomata are like the pores in our skin.