Skip to content

Commit

Permalink
src: fix leak in "nl-cls-add"
Browse files Browse the repository at this point in the history
Not important, but coverity flags this. Avoid it.
  • Loading branch information
thom311 committed Dec 1, 2023
1 parent a06c8f7 commit 46e8739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl-cls-add.c
Expand Up @@ -111,7 +111,7 @@ int main(int argc, char *argv[])
case 'v': nl_cli_print_version(); break;
case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
case 'p': nl_cli_tc_parse_parent(tc, optarg); break;
case 'i': id = strdup(optarg); break;
case 'i': free(id); id = strdup(optarg); break;
case ARG_UPDATE: flags = NLM_F_CREATE; break;
case ARG_UPDATE_ONLY: flags = 0; break;
case ARG_MTU: nl_cli_tc_parse_mtu(tc, optarg); break;
Expand Down

0 comments on commit 46e8739

Please sign in to comment.