diff options
author | Tobias Junghans <tobydox@veyon.io> | 2018-11-05 15:52:59 +0100 |
---|---|---|
committer | Tobias Junghans <tobydox@veyon.io> | 2018-11-05 15:52:59 +0100 |
commit | 597473be045c044771e07d2179bcfa5a365ef617 (patch) | |
tree | 07d9b7b03474b5f903371ccce281572baa578ff4 /libvncclient | |
parent | ca2a5ac02fbbadd0a21fabba779c1ea69173d10b (diff) | |
download | libtdevnc-597473be045c044771e07d2179bcfa5a365ef617.tar.gz libtdevnc-597473be045c044771e07d2179bcfa5a365ef617.zip |
LibVNCClient: free buffers in rfbClientCleanup()
Buffers allocated by encoding handlers have to be freed as well.
Diffstat (limited to 'libvncclient')
-rw-r--r-- | libvncclient/vncviewer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 2a13f0e..ec1b73a 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -519,6 +519,12 @@ void rfbClientCleanup(rfbClient* client) { #endif #endif + if (client->ultra_buffer) + free(client->ultra_buffer); + + if (client->raw_buffer) + free(client->raw_buffer); + FreeTLS(client); while (client->clientData) { |