summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https/proxy.go
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-08-26 10:28:06 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-26 09:21:01 -0700
commit4d589b87e857015b4f78e47353f87d4aa717b1a0 (patch)
tree852bf6b013f08f272d31657772012487a3124b7b /contrib/persistent-https/proxy.go
parent98c9897d9e40f49cfb416801851656bac494ae40 (diff)
downloadgit-4d589b87e857015b4f78e47353f87d4aa717b1a0.tar.gz
git-4d589b87e857015b4f78e47353f87d4aa717b1a0.zip
load_subtree(): check earlier whether an internal node is a tree entry
If an entry is not a tree entry, then it cannot possibly be an internal node. But the old code checked this condition only after allocating a leaf_node object and therefore leaked that memory. Instead, check before even entering this branch of the code. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https/proxy.go')
0 files changed, 0 insertions, 0 deletions