This call to `git_reference_free` will leave `oid` pointing to memory that's been freed.