1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Dont check before freeing

Regards d18ec23d0a
This commit is contained in:
Michael Vetter 2020-02-27 16:29:23 +01:00
parent ca14f3a1a2
commit c9fcd01865

View File

@ -178,13 +178,9 @@ main(int argc, char **argv)
prof_run(log ? log : "INFO", account_name, config_file, log_file); prof_run(log ? log : "INFO", account_name, config_file, log_file);
/* Free resources allocated by GOptionContext */ /* Free resources allocated by GOptionContext */
if (log)
g_free(log); g_free(log);
if (account_name)
g_free(account_name); g_free(account_name);
if (config_file)
g_free(config_file); g_free(config_file);
if (log_file)
g_free(log_file); g_free(log_file);
return 0; return 0;