avoid premature free() on reference-target oid result