From 63c81517b71c424a93d8f12d964c0fa185fbc47d Mon Sep 17 00:00:00 2001 From: weizhenwei Date: Fri, 9 Jun 2017 14:39:38 +0800 Subject: [PATCH] fix memory leak on update->window->monitored_desktop.windowIds which is realloced at update_read_desktop_actively_monitored_order() --- libfreerdp/core/update.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index 6cc61873e..20c8bf710 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -2139,6 +2139,11 @@ void update_free(rdpUpdate* update) free(update->primary); free(update->secondary); free(update->altsec); + if (update->window->monitored_desktop.windowIds) + { + free(update->window->monitored_desktop.windowIds); + update->window->monitored_desktop.windowIds = NULL; + } free(update->window); MessageQueue_Free(update->queue); free(update);