Even though, the `git_reference_free` is a no-op if it's parameter is `NULL`, this change would reduce the lookups from 9 to 3 - and should probably be done. Anyway, I didn't want to be _too_ nit-picky about this, since the change itself is nice to have :-)