Chlorine gas, Cl2, is not obtained by heating potassium chloride, KCl, potassium dichromate, K2Cr2O7, and concentrated sulfuric acid, H2SO4.
This reaction is actually called the chromyl chloride test for the chloride anion, Cl−.
The idea is that when you heat a compound that contains chloride (a solid salt, not a solution that contains the solvated anion) with potassium dichromate and concentrated sulfuric acid, the reaction produces chromyl chloride, CrO2Cl2, a red fuming liquid.
The balanced chemical equation for this reaction is
4KCl(s]+K2Cr2O7(s]+H2SO4(aq]Δaa−−→6KHSO4(aq]+2CrO2Cl2(g]+3H2O(l]
Mind you, this is kind of an overall description of the reaction.
Here's what's actually going on - the sulfuric acid reacts with the potassium chloride and potassium dichromate separately to produce hydrochloric acid, HCl, and chromium trioxide, CrO3, respectively.
KCl+H2SO4→KHSO4+HCl
K2Cr2O7+2H2SO4→2KHSO4+2CrO3+H2O
It is then the reaction between hydrochloric acid and chromium trioxide that produces chromyl chloride.
2HCl+CrO3→CrO2Cl2+H2O
If you add these equations together (and balance them out), you'll get the chemical equation that describes the overall reaction.