Skip to content

Commit 068966d

Browse files
committed
Merge branch 'rs/close-pack-leakfix'
Leakfix. * rs/close-pack-leakfix: packfile: release bad_objects in close_pack()
2 parents 0a2b53c + 8c6b433 commit 068966d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packfile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ void close_pack(struct packed_git *p)
339339
close_pack_fd(p);
340340
close_pack_index(p);
341341
close_pack_revindex(p);
342+
oidset_clear(&p->bad_objects);
342343
}
343344

344345
void close_object_store(struct raw_object_store *o)

0 commit comments

Comments
 (0)