Commit 9e20ba66 authored by Thomas Haller's avatar Thomas Haller
Browse files

main: free error variable in main() at exit

Just try to free everything that was allocated. Don't leak
error in case of failure.
parent 191c9c7f
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment