input: fix a leak
authornotaz <notasas@gmail.com>
Mon, 28 Aug 2023 20:30:40 +0000 (23:30 +0300)
committernotaz <notasas@gmail.com>
Sun, 4 May 2025 15:20:53 +0000 (18:20 +0300)
linux/in_evdev.c

index 4dc76be..21ae00b 100644 (file)
@@ -263,6 +263,7 @@ static void in_evdev_probe(const in_drv_t *drv)
 
 no_abs:
                if (count == 0 && !have_abs) {
+                       free(dev->kbits);
                        free(dev);
                        goto skip;
                }