]> git.99rst.org Git - git.git/commit
am: don't pass strvec to apply_parse_options()
authorRené Scharfe <redacted>
Tue, 13 Dec 2022 06:47:59 +0000 (07:47 +0100)
committerJunio C Hamano <redacted>
Tue, 13 Dec 2022 13:07:37 +0000 (22:07 +0900)
commita658e881c138c8bc398d1d4b9b6db9e29b16673c
tree900b01ae8a8271244192eddd5ef3ae542774976a
parent8706a59933d09354c5e3eb09a543453655a97183
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/am.c
git clone https://git.99rst.org/PROJECT