diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-01-27 18:01:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-01 13:46:52 -0800 |
commit | 62af896979403c6bcb441ca784121e720b161b30 (patch) | |
tree | 519a9f4799c98afafa5a25275ac96b71b57d628c /commit.c | |
parent | ec4d77aa508ac36f1f65ca8f228d4cbac42d694c (diff) | |
download | git-62af896979403c6bcb441ca784121e720b161b30.tar.gz |
attr.c: plug small leak in parse_attr_line()
If any error is noticed after the match_attr structure is allocated,
we shouldn't just return NULL from this function.
Add a fail_return label that frees the allocated structure and
returns NULL, and consistently jump there when we want to return
NULL after cleaning up.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions