X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=f075168d2df5de2890b6218bffa4e9e650dfcdc8;hp=b3d911b8f61f2fdc1b2cf1732ba0e2072e2f0e55;hb=5672863e59e6a114ac6b66de98254b14266c0e61;hpb=52ded09d1713b83222b56db7d29ff061aefb95e3 diff --git a/src/tincd.c b/src/tincd.c index b3d911b8..f075168d 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")) { @@ -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;