Fixed freerdp_settings_new error cleanup.

This commit is contained in:
Armin Novak 2020-01-07 10:49:17 +01:00
parent ac553e1bb5
commit c24da9e856

View File

@ -623,27 +623,7 @@ rdpSettings* freerdp_settings_new(DWORD flags)
return settings;
out_fail:
free(settings->HomePath);
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);
freerdp_settings_free(settings);
return NULL;
}