The share market has closed slightly higher but gave away most of its earlier gains as investors took profits late in the session.

The share market has closed slightly higher but gave away most of its earlier gains as investors took profits late in the session.