strdup call was missing