server: proxy: config: fix mem leak

This commit is contained in:
kubistika 2019-09-11 14:14:43 +03:00
parent 867843eef7
commit 53a92421b1
2 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,7 @@ static BOOL pf_config_load_modules(wIniFile* ini, proxyConfig* config)
{
UINT32 index;
int modules_count = 0;
char** module_names;
char** module_names = NULL;
module_names = IniFile_GetSectionKeyNames(ini, "Modules", &modules_count);
@ -143,6 +143,7 @@ static BOOL pf_config_load_modules(wIniFile* ini, proxyConfig* config)
WLog_INFO(TAG, "module '%s' is loaded!", module_name);
}
free(module_names);
return TRUE;
}

View File

@ -419,6 +419,7 @@ int pf_server_start(proxyConfig* config)
pf_server_mainloop(listener);
}
freerdp_listener_free(listener);
WSACleanup();
return 0;
}