Fix potential rooting bug

The result could get moved when it was already on the C arg stack.