From c9fcd018655a18ad522b36edaec1b1f2d5ee180d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 27 Feb 2020 16:29:23 +0100 Subject: [PATCH] Dont check before freeing Regards d18ec23d0a38bd538d48f7e827fec0fceb9f230d --- src/main.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index 99ccfbc0..65f69966 100644 --- a/src/main.c +++ b/src/main.c @@ -178,14 +178,10 @@ main(int argc, char **argv) prof_run(log ? log : "INFO", account_name, config_file, log_file); /* Free resources allocated by GOptionContext */ - if (log) - g_free(log); - if (account_name) - g_free(account_name); - if (config_file) - g_free(config_file); - if (log_file) - g_free(log_file); + g_free(log); + g_free(account_name); + g_free(config_file); + g_free(log_file); return 0; }