We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd2bd6 commit cc3bc99Copy full SHA for cc3bc99
src/lib/cls.c
@@ -50,16 +50,13 @@ void nl_cli_cls_parse_proto(struct rtnl_cls *cls, char *arg)
50
51
struct rtnl_ematch_tree *nl_cli_cls_parse_ematch(struct rtnl_cls *cls, char *arg)
52
{
53
+ _nl_auto_free char *errstr = NULL;
54
struct rtnl_ematch_tree *tree;
- char *errstr = NULL;
55
int err;
56
57
if ((err = rtnl_ematch_parse_expr(arg, &errstr, &tree)) < 0)
58
nl_cli_fatal(err, "Unable to parse ematch expression: %s",
59
errstr);
60
-
61
- if (errstr)
62
- free(errstr);
63
64
return tree;
65
}
0 commit comments