mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 03:30:35 +01:00
core: free config_cli before exit() from main
[thaller@redhat.com: changed commit message] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/954
This commit is contained in:
parent
e11b8b94e3
commit
97041efee1
1 changed files with 2 additions and 0 deletions
|
|
@ -326,6 +326,7 @@ main(int argc, char *argv[])
|
|||
|
||||
if (global_opt.show_version) {
|
||||
fprintf(stdout, NM_DIST_VERSION "\n");
|
||||
nm_config_cmd_line_options_free(config_cli);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
@ -374,6 +375,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr,
|
||||
_("%s. Please use --help to see a list of valid options.\n"),
|
||||
error->message);
|
||||
nm_config_cmd_line_options_free(config_cli);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue