diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-10-20 20:27:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-20 11:36:13 -0700 |
commit | 37766b61cdb3e12709febcd2f9dbee2b90e62969 (patch) | |
tree | f8a8d1ebd8f2dabe4e120d3359c11444bfbc143a /diffcore-order.c | |
parent | The fourteenth batch (diff) | |
download | tgif-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 'diffcore-order.c')
0 files changed, 0 insertions, 0 deletions