server: proxy: config: fix mem leak
This commit is contained in:
parent
867843eef7
commit
53a92421b1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -419,6 +419,7 @@ int pf_server_start(proxyConfig* config)
|
||||
pf_server_mainloop(listener);
|
||||
}
|
||||
|
||||
freerdp_listener_free(listener);
|
||||
WSACleanup();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user