diff options
author | Thomas Haller <thaller@redhat.com> | 2018-06-21 08:03:44 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-27 09:21:33 +0200 |
commit | 5be0ad48e84ce0e4c9c3077d29116aab14d7073f (patch) | |
tree | b5c5ebcf506a6361dfb7cb563a1158a6aaad89e4 | |
parent | 141696b4e3f495c7706cd8fbd2909917bf812801 (diff) | |
download | NetworkManager-5be0ad48e84ce0e4c9c3077d29116aab14d7073f.tar.gz |
main: free error variable in main() at exit
Just try to free everything that was allocated. Don't leak
error in case of failure.
(cherry picked from commit 9e20ba6646634be373ed91136000abf687c9af57)
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index c1267b275d..5cb7e785bf 100644 --- a/src/main.c +++ b/src/main.c @@ -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; |