Malloc-ing in get ID/IP