Explicitly free any string prior to overwriting with call to strdup()