mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Dont check before freeing
Regards d18ec23d0a38bd538d48f7e827fec0fceb9f230d
This commit is contained in:
parent
ca14f3a1a2
commit
c9fcd01865
12
src/main.c
12
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user