Remove using of strdup function.