FnReturn does its own xstrdup() on its parameter, so you're leaking min and max.
```
return (FnCallResult) { FNCALL_SUCCESS, { min, RVAL_TYPE_SCALAR } };
```
would avoid this leak of min, but you'd still be leaking max.