summaryrefslogtreecommitdiff
path: root/trace2/tr2_tgt_event.c
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2021-10-26 17:01:18 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-28 15:32:14 -0700
commitee4a1d63d7e9bdbea6bbeeb3f82ef33030de9ffb (patch)
treeab2b265884ef943252bfb154218089c4c58addb0 /trace2/tr2_tgt_event.c
parentbuiltin/repack.c: avoid leaking child arguments (diff)
downloadtgif-ee4a1d63d7e9bdbea6bbeeb3f82ef33030de9ffb.tar.xz
builtin/multi-pack-index.c: don't leak concatenated options
The `multi-pack-index` builtin dynamically allocates an array of command-line option for each of its separate modes by calling add_common_options() to concatante the common options with sub-command specific ones. Because this operation allocates a new array, we have to be careful to remember to free it. We already do this in the repack and write sub-commands, but verify and expire don't. Rectify this by calling FREE_AND_NULL as the other modes do. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tgt_event.c')
0 files changed, 0 insertions, 0 deletions