Re: [PATCH v2 2/5] pretty: allow showing specific trailers
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 5, 2018, 05:14 UTC
- Message-ID
- <xmqqzhuohzrh.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20181104152232.20671-3-anders@0x63.nu>
Anders Waldenborg <anders@0x63.nu> writes:
Show 5 quoted lines
> + else if (skip_prefix(arg, "key=", &arg)) {
> + const char *end = arg + strcspn(arg, ",)");
> +
> + if (opts.filter_key)
> + free(opts.filter_key);Call the free() unconditionally, cf. contrib/coccinelle/free.cocci.