summaryrefslogtreecommitdiff
path: root/builtin/bisect--helper.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2017-05-04 15:59:06 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-08 12:18:20 +0900
commit5308224633cf138f436357b2a8a87a546373af72 (patch)
tree38df10b117d95a5a1f88df10fd8128d8da67450e /builtin/bisect--helper.c
parentremote: plug memory leak in match_explicit() (diff)
downloadtgif-5308224633cf138f436357b2a8a87a546373af72.tar.xz
name-rev: avoid leaking memory in the `deref` case
When the `name_rev()` function is asked to dereference the tip name, it allocates memory. But when it turns out that another tip already described the commit better than the current one, we forgot to release the memory. Pointed out by Coverity. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/bisect--helper.c')
0 files changed, 0 insertions, 0 deletions