summaryrefslogtreecommitdiffstats
path: root/http-walker.c
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2021-10-01 03:37:55 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-01 03:48:51 +0200
commit8e2af8f0db329a8c0211a309fa9cb611b6dc2517 (patch)
tree3a68d28d2a36f78af554d4f1949e4e96df7bf991 /http-walker.c
parentdifftool: refactor dir-diff to write files using helper functions (diff)
downloadgit-8e2af8f0db329a8c0211a309fa9cb611b6dc2517.tar.xz
git-8e2af8f0db329a8c0211a309fa9cb611b6dc2517.zip
difftool: remove an unnecessary call to strbuf_release()
The `buf` strbuf is reused again later in the same function, so there is no benefit to calling strbuf_release(). The subsequent usage is already using strbuf_reset() to reset the buffer, so releasing it early is only going to lead to a wasteful reallocation. Remove the early call to strbuf_release(). The same strbuf is already cleaned up in the "finish:" section so nothing is leaked, either. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
0 files changed, 0 insertions, 0 deletions