The strdup should also be done here.