From 90bfeca905a1530ccf8fb91006c9be028c56af74 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 11 Jul 2025 15:45:37 +0200 Subject: [PATCH] Xi: drop unused variable and NULL free in ProcXISelectEvents() The `types` variable is never used, just assigned NULL - and that NULL value is passed to free(). This code is really doing nothing, never did so since introduced in 2009. Fixes: 8b6a370058ad5a20e0a0e49ec9443daf03775de8 Signed-off-by: Enrico Weigelt, metux IT consult --- Xi/xiselectev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c index 85fae27744..337485fa78 100644 --- a/Xi/xiselectev.c +++ b/Xi/xiselectev.c @@ -151,7 +151,6 @@ ProcXISelectEvents(ClientPtr client) DeviceIntPtr dev; DeviceIntRec dummy; xXIEventMask *evmask; - int *types = NULL; int len; REQUEST(xXISelectEventsReq); @@ -327,8 +326,6 @@ ProcXISelectEvents(ClientPtr client) } RecalculateDeliverableEvents(win); - - free(types); return Success; }