summaryrefslogtreecommitdiff
path: root/alloc.h
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-20 20:27:19 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-20 11:36:13 -0700
commit37766b61cdb3e12709febcd2f9dbee2b90e62969 (patch)
treef8a8d1ebd8f2dabe4e120d3359c11444bfbc143a /alloc.h
parentThe fourteenth batch (diff)
downloadtgif-37766b61cdb3e12709febcd2f9dbee2b90e62969.tar.xz
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 'alloc.h')
0 files changed, 0 insertions, 0 deletions