Merge branch 'nd/repo-clear-keep-the-index'
authorJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2018 05:04:05 +0000 (14:04 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2018 05:04:05 +0000 (14:04 +0900)
commit0abb9628932717f535f27d4652c07455389db5f3
treeda86cd118048f59c22601cfadcd0fc0b7f2fdcad
parent2f76ebc93ca6bfc2aba1be330aabe391a7d093d2
parent74373b5f10e2e8720ad2ae8211811757601550fd
Merge branch 'nd/repo-clear-keep-the-index'

the_repository->index is not a allocated piece of memory but
repo_clear() indiscriminately attempted to free(3) it, which has
been corrected.

* nd/repo-clear-keep-the-index:
  repository: fix free problem with repo_clear(the_repository)
repository.c