Free memory of next linked structure of attribute