From 0e0acc9a10e2d38e7d7cadc54b89668fb3c750e7 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 11 Feb 2022 08:50:13 +0100 Subject: [PATCH] Fix a memory leak --- src/Input/FGLinuxEventInput.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Input/FGLinuxEventInput.cxx b/src/Input/FGLinuxEventInput.cxx index 20c3437b2..bb27b86e9 100644 --- a/src/Input/FGLinuxEventInput.cxx +++ b/src/Input/FGLinuxEventInput.cxx @@ -503,6 +503,7 @@ void FGLinuxEventInput::postinit() udev_device_unref(dev); } + udev_enumerate_unref(enumerate); // REVIEW: this should fix the memory leak udev_unref(udev); }