A gas pipeline was damaged during roadwork in Thiruvananthapuram, but the leak was brought under control.