The gas gland found in the wall of swimbladders in some ray-finned fish keeps gases in the swimbladder from escaping into the blood by passing the blood through an "exchanger."
“But the swimbladder must be filled from dissolved gases in the blood, and it must not lose gas through redissolution into the blood. So secretion of gas from blood into swimbladder faces a big barrier, and swimbladder gas will all too readily go into solution in the fish’s blood and thence out into the ocean. Two devices stand in the way. First, a layer in the swimbladder wall provides a very effective barrier to the passage of oxygen (Lapennas and Schmidt-Nielsen 1977). Second, blood leaving the so-called gas in the wall of the swimbladder passes through an exchanger (fig.5.2) in which blood leaving the swimbladder loses excess dissolved gas specifically to blood moving toward the swimbladder (Scholander 1954).” (Vogel 2003:99-100)