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); }