The `branch` ref needs a call to `git_reference_free`