freerds: cleanup usage of strdup vs _strdup