diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-05-04 13:59:01 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 03:18:20 (GMT) |
commit | 3dc7ea91dab9959b6bec82c05df18d6d1bb70619 (patch) | |
tree | 426a40798e6cb66311ae38a89bd46cc5004a87c3 /builtin/name-rev.c | |
parent | 5026b471751092ab971f3d4ae46320bc8ce40ff5 (diff) | |
download | git-3dc7ea91dab9959b6bec82c05df18d6d1bb70619.zip git-3dc7ea91dab9959b6bec82c05df18d6d1bb70619.tar.gz git-3dc7ea91dab9959b6bec82c05df18d6d1bb70619.tar.bz2 |
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>
Diffstat (limited to 'builtin/name-rev.c')
0 files changed, 0 insertions, 0 deletions