Merge branch 'ma/leakplugs'
commit69c54c72845ebc686d0f4bdd8d44b06f799b0a80
authorJunio C Hamano <gitster@pobox.com>
Fri, 29 Sep 2017 02:23:43 +0000 (29 11:23 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Sep 2017 02:23:43 +0000 (29 11:23 +0900)
treebbd4e768952cbd26dd7ddaec0ab915fcda9987a8
parent14a8168e2fed3934f1f9afb286f1c64345d06790
parent4d01a7fa65c50e817a935396432e199b7a565f53
Merge branch 'ma/leakplugs'

Memory leaks in various codepaths have been plugged.

* ma/leakplugs:
  pack-bitmap[-write]: use `object_array_clear()`, don't leak
  object_array: add and use `object_array_pop()`
  object_array: use `object_array_clear()`, not `free()`
  leak_pending: use `object_array_clear()`, not `free()`
  commit: fix memory leak in `reduce_heads()`
  builtin/commit: fix memory leak in `prepare_index()`
bisect.c
builtin/checkout.c
builtin/commit.c
builtin/fast-export.c
builtin/fsck.c
commit.c
pack-bitmap.c
revision.h
shallow.c
submodule.c
upload-pack.c