strdup?  That would leak at end of program.