The bob filled completely with water has its centre of mass at its centre. The time period of oscillation is T=2π√
l
g
As the water starts coming out of the bob, its centre of mass shifts vertically downward as a result effective length of the pendulum increases and hence its period also increases. When the bob is empty, again its centre of mass appears at its centre and as a result, the period of oscillation again reaches to its original value.