From: Armin Novak Date: Tue, 7 Jan 2020 09:49:17 +0000 (+0100) Subject: Fixed freerdp_settings_new error cleanup. X-Git-Tag: 2.0.0~211^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c24da9e8566b383717d64525aaacb984195ba4a5;p=platform%2Fupstream%2Ffreerdp.git Fixed freerdp_settings_new error cleanup. --- diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index 9fc9ee7..bfad1cf 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -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; }