Web lists-archives.com

Re: [PATCH v2 2/5] pretty: allow showing specific trailers




Anders Waldenborg <anders@xxxxxxx> writes:

> +				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.