remote: plug memory leak in match_explicit()
commit3dc7ea91dab9959b6bec82c05df18d6d1bb70619
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 May 2017 13:59:01 +0000 (4 15:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 03:18:20 +0000 (8 12:18 +0900)
tree426a40798e6cb66311ae38a89bd46cc5004a87c3
parent5026b471751092ab971f3d4ae46320bc8ce40ff5
remote: plug memory leak in match_explicit()

The `guess_ref()` returns an allocated buffer of which `make_linked_ref()`
does not take custody (`alloc_ref()` makes a copy), therefore we need to
release the buffer afterwards.

Noticed via Coverity.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c