diff options
author | René Scharfe <l.s.r@web.de> | 2022-12-13 07:47:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-13 22:07:37 +0900 |
commit | a658e881c138c8bc398d1d4b9b6db9e29b16673c (patch) | |
tree | 900b01ae8a8271244192eddd5ef3ae542774976a /commit.c | |
parent | 8706a59933d09354c5e3eb09a543453655a97183 (diff) |
am: don't pass strvec to apply_parse_options()
apply_parse_options() passes the array of argument strings to
parse_options(), which removes recognized options. The removed strings
are not freed, though.
Make a copy of the strvec to pass to the function to retain the pointers
of its strings, so we release them all at the end.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions