mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 01:58:05 +02:00
main: free error variable in main() at exit
Just try to free everything that was allocated. Don't leak error in case of failure.
This commit is contained in:
parent
191c9c7f0d
commit
9e20ba6646
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ main (int argc, char *argv[])
|
|||
gboolean success = FALSE;
|
||||
NMManager *manager = NULL;
|
||||
NMConfig *config;
|
||||
GError *error = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
gboolean wrote_pidfile = FALSE;
|
||||
char *bad_domains = NULL;
|
||||
NMConfigCmdLineOptions *config_cli;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue