GUACAMOLE-1903: Merge set rcMask to NULL to avoid double free.

This commit is contained in:
Virtually Nick 2024-01-18 14:31:20 -05:00 committed by GitHub
commit eecb99b8da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,6 +124,9 @@ void guac_vnc_cursor(rfbClient* client, int x, int y, int w, int h, int bpp) {
guac_mem_free(buffer);
/* libvncclient does not free rcMask as it does rcSource */
free(client->rcMask);
if (client->rcMask != NULL) {
free(client->rcMask);
client->rcMask = NULL;
}
}