[core,update] fix leak on error termination

This commit is contained in:
akallabeth 2024-04-21 13:25:45 +02:00 committed by akallabeth
parent 7f9c5d84ad
commit db09d1d7f8
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}