X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=f7b956fea124301851d63ab2b1b2565ec7e3557b;hp=b3d911b8f61f2fdc1b2cf1732ba0e2072e2f0e55;hb=178e52f76ef4ba40748c13ea7e518837394d6dbc;hpb=07ffb1a19859791d419b83a876ba552dadedbf46 diff --git a/src/tincd.c b/src/tincd.c index b3d911b8..f7b956fe 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -612,7 +612,7 @@ int main2(int argc, char **argv) { /* Change process priority */ - char *priority = 0; + char *priority = NULL; if(get_config_string(lookup_config(config_tree, "ProcessPriority"), &priority)) { if(!strcasecmp(priority, "Normal")) { @@ -650,7 +650,7 @@ int main2(int argc, char **argv) { /* Shutdown properly. */ ifdebug(CONNECTIONS) - dump_device_stats(); + devops.dump_stats(); close_network_connections(); @@ -661,6 +661,8 @@ end: remove_pid(pidfilename); #endif + free(priority); + EVP_cleanup(); ENGINE_cleanup(); CRYPTO_cleanup_all_ex_data(); @@ -668,6 +670,7 @@ end: ERR_free_strings(); exit_configuration(&config_tree); + list_free(cmdline_conf); free_names(); return status;