Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> writes: > Fix a bug in fd3cb0501e1 (remote: move static variables into > per-repository struct, 2021-11-17) where we'd free(remote->pushurl[i]) > after having NULL'd out remote->pushurl. itself. We free Wow, that's a bad one. Why didn't anybody notice this at runtime, I have to wonder. > for (i = 0; i < remote->url_nr; i++) > free((char *)remote->url[i]); > - FREE_AND_NULL(remote->pushurl); > + FREE_AND_NULL(remote->url); > > for (i = 0; i < remote->pushurl_nr; i++) > free((char *)remote->pushurl[i]); > FREE_AND_NULL(remote->pushurl); Thanks.