libgit2/libgit2 — pull request #1655 by yorah (2013-06-17 16:28:06+00:00)
Title: ref: free the last ref when cancelling git_branch_foreach()

Also fixed an assert typo on nulltoken's HEAD