Fix a few small memory leaks.

This commit is contained in:
Guus Sliepen 2011-12-03 21:59:47 +01:00
parent 52ded09d17
commit 5672863e59
3 changed files with 6 additions and 3 deletions

View file

@ -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;