mirror of https://github.com/FreeRDP/FreeRDP
[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