input: fix a leak
authornotaz <notasas@gmail.com>
Mon, 28 Aug 2023 20:30:40 +0000 (23:30 +0300)
committernotaz <notasas@gmail.com>
Mon, 28 Aug 2023 20:33:07 +0000 (23:33 +0300)
linux/in_evdev.c

index ff714ce..e046fa6 100644 (file)
@@ -259,6 +259,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;
                }