Nice catch, we can get rid of the dup() all-together with the current calling semantics.