projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873bb26
)
fix memory leak on update->window->monitored_desktop.windowIds which is realloced...
author
weizhenwei
<weizhenwei1988@gmail.com>
Fri, 9 Jun 2017 06:39:38 +0000
(14:39 +0800)
committer
weizhenwei
<weizhenwei1988@gmail.com>
Wed, 21 Jun 2017 07:26:27 +0000
(15:26 +0800)
libfreerdp/core/update.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/update.c
b/libfreerdp/core/update.c
index
6cc6187
..
20c8bf7
100644
(file)
--- 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);