Cardiff manager Malky Mackay was relieved to see his team survive a late onslaught at Molineux where the Welsh club held off Wolves for a 2-1 victory.