If any person breaks the secrecy of an invention as directed by section 35 (secrecy on inventions related to defence purposes) or makes an application for grant against section 39 (residents not to apply for patent outside India without prior permission), shall be punishable with two years imprisonment or fine or both.