Ensure that odb is always freed

This commit is contained in:
richo 2013-01-04 22:55:56 +11:00
parent 3058181e14
commit 77224e434b

@ -182,6 +182,7 @@ Repository_as_iter(Repository *self)
}
err = git_odb_foreach(odb, Repository_build_as_iter, accum);
if (err < 0) {
git_odb_free(odb);
Error_set(err);
return -1;
}