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.