diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-08-26 10:28:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-26 09:21:01 -0700 |
commit | 4d589b87e857015b4f78e47353f87d4aa717b1a0 (patch) | |
tree | 852bf6b013f08f272d31657772012487a3124b7b /po | |
parent | load_subtree(): separate logic for internal vs. terminal entries (diff) | |
download | tgif-4d589b87e857015b4f78e47353f87d4aa717b1a0.tar.xz |
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 'po')
0 files changed, 0 insertions, 0 deletions