Properly free temporary cursor buffer
diff --git a/unix/xserver/hw/vnc/vncHooks.c b/unix/xserver/hw/vnc/vncHooks.c
index 58a0eca..eee2682 100644
--- a/unix/xserver/hw/vnc/vncHooks.c
+++ b/unix/xserver/hw/vnc/vncHooks.c
@@ -673,6 +673,8 @@
 #endif
 
     vncSetCursor(pScreen->myNum, width, height, hotX, hotY, rgbaData);
+
+    free(rgbaData);
   }
 
 out: