I suggest making the input parameter called d_strref, then here do:
```
MCAutoPointer<char> d;
/* UNCHECKED */ d = strdup(MCStringGetCString(d_strref);
char *eptr = *d;
```
This ensures the copy is freed when the method ends.