Fixed memory leak in reallocate.
This commit is contained in:
parent
c8908c8be6
commit
59e9abc737
@ -150,7 +150,11 @@ static BOOL reallocate(rdpAssistanceFile* file, const char* host, UINT32 port)
|
||||
tmp2 = realloc(file->MachineAddresses, sizeof(char*) * file->MachineCount);
|
||||
|
||||
if (!tmp1 || !tmp2)
|
||||
{
|
||||
free(tmp1);
|
||||
free(tmp2);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
file->MachinePorts = tmp1;
|
||||
file->MachineAddresses = tmp2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user