If this fails, I think it will call `git_tag_free` on uninitialized memory. Maybe initialize `tag` to NULL above?