mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-27 03:44:06 +08:00
[core,update] fix leak on error termination
This commit is contained in:
parent
7f9c5d84ad
commit
db09d1d7f8
@ -3299,6 +3299,9 @@ void update_free(rdpUpdate* update)
|
||||
|
||||
MessageQueue_Free(up->queue);
|
||||
DeleteCriticalSection(&up->mux);
|
||||
|
||||
if (up->us)
|
||||
Stream_Free(up->us, TRUE);
|
||||
free(update);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user