Fix the last problem with less brain damage. This time, allocate new memory on the stack before fill_tmpfile is used for a temporary copy of the args (just like step_optreq) instead of modifying the reference structure.