Fix memory leak in UDID list code