summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-07-15 09:45:04 -0700
committerVicent Martí <vicent@github.com>2013-07-15 09:45:04 -0700
commitf538515079bc3af9b5b69f727b0810e57684af81 (patch)
treeed2967d2d686b97ab428030184ae52c736f3137d /src/pack-objects.c
parent3f8086e06917a69a81cc2c2f4987f5a5f4451687 (diff)
parentc6451624c4631ccf039d0f3d5af6fbf4364f001c (diff)
downloadlibgit2-f538515079bc3af9b5b69f727b0810e57684af81.tar.gz
Merge pull request #1728 from ivoire/small_fixes
Small fixes
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r--src/pack-objects.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c
index 500104c55..7f427e3bd 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -505,8 +505,10 @@ static git_pobject **compute_write_order(git_packbuilder *pb)
/*
* Mark objects that are at the tip of tags.
*/
- if (git_tag_foreach(pb->repo, &cb_tag_foreach, pb) < 0)
+ if (git_tag_foreach(pb->repo, &cb_tag_foreach, pb) < 0) {
+ git__free(wo);
return NULL;
+ }
/*
* Give the objects in the original recency order until