Ensure that odb is always freed
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user