Skip to content

Commit

Permalink
Merge branch 'sp/maint-pack-memuse' into maint
Browse files Browse the repository at this point in the history
* sp/maint-pack-memuse:
  Correct pack memory leak causing git gc to try to exceed ulimit
  • Loading branch information
Junio C Hamano committed Jul 16, 2008
2 parents 614de95 + eac12e2 commit bbe99ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sha1_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,7 @@ static void *unpack_delta_entry(struct packed_git *p,
off_t base_offset;

base_offset = get_delta_base(p, w_curs, &curpos, *type, obj_offset);
unuse_pack(w_curs);
base = cache_or_unpack_entry(p, base_offset, &base_size, type, 0);
if (!base)
die("failed to read delta base object"
Expand Down

0 comments on commit bbe99ea

Please sign in to comment.