For the third consecutive day, the market ended flat due to profit booking. Sensex closed up by 0.09 per cent at 58,305.07 level while Nifty settled with a gain of 0.09 per cent, at 17,369.25 level. BSE Midcap index ended 0.56 per cent higher, and the BSE Smallcap index registered a gain of 0.52 per cent.