summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-20 20:27:19 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-20 11:36:13 -0700
commit37766b61cdb3e12709febcd2f9dbee2b90e62969 (patch)
treef8a8d1ebd8f2dabe4e120d3359c11444bfbc143a /builtin/commit.c
parent9d530dc0024503ab4218fe6c4395b8a0aa245478 (diff)
tag: use a "goto cleanup" pattern, leak less memory
Change cmd_tag() to free its "struct strbuf"'s instead of using an UNLEAK() pattern. This changes code added in 886e1084d78 (builtin/: add UNLEAKs, 2017-10-01). As shown in the context of the declaration of the "struct msg_arg" (which I'm changing to use a designated initializer while at it, and to show the context in this change), that struct is just a thin wrapper around an int and "struct strbuf". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions