Fixed freerdp_settings_new error cleanup.
This commit is contained in:
parent
ac553e1bb5
commit
c24da9e856
@ -623,27 +623,7 @@ rdpSettings* freerdp_settings_new(DWORD flags)
|
|||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
out_fail:
|
out_fail:
|
||||||
free(settings->HomePath);
|
freerdp_settings_free(settings);
|
||||||
free(settings->ConfigPath);
|
|
||||||
free(settings->DynamicChannelArray);
|
|
||||||
free(settings->StaticChannelArray);
|
|
||||||
free(settings->DeviceArray);
|
|
||||||
free(settings->ClientTimeZone);
|
|
||||||
free(settings->ServerAutoReconnectCookie);
|
|
||||||
free(settings->ClientAutoReconnectCookie);
|
|
||||||
free(settings->ClientDir);
|
|
||||||
free(settings->FragCache);
|
|
||||||
free(settings->GlyphCache);
|
|
||||||
free(settings->BitmapCacheV2CellInfo);
|
|
||||||
free(settings->ClientProductId);
|
|
||||||
free(settings->ClientHostname);
|
|
||||||
free(settings->OrderSupport);
|
|
||||||
free(settings->ReceivedCapabilities);
|
|
||||||
free(settings->ComputerName);
|
|
||||||
free(settings->MonitorIds);
|
|
||||||
free(settings->MonitorDefArray);
|
|
||||||
free(settings->ChannelDefArray);
|
|
||||||
free(settings);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user