From 6c14eaa6e8f66fdf58e232c5fac33a0e103cee74 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 21:26:03 -0500 Subject: [PATCH] REVIEW: Memory Leak - FGLinuxEventInput::postinit() 4,995 (40 direct, 4,955 indirect) bytes in 1 blocks are definitely lost --- src/Input/FGLinuxEventInput.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Input/FGLinuxEventInput.cxx b/src/Input/FGLinuxEventInput.cxx index c3fb0cc77..dcdae8d6e 100644 --- a/src/Input/FGLinuxEventInput.cxx +++ b/src/Input/FGLinuxEventInput.cxx @@ -475,6 +475,7 @@ void FGLinuxEventInput::postinit() struct udev_enumerate *enumerate = udev_enumerate_new(udev); udev_enumerate_add_match_subsystem(enumerate, "input"); udev_enumerate_scan_devices(enumerate); + // REVIEW: Memory Leak - 4,995 (40 direct, 4,955 indirect) bytes in 1 blocks are definitely lost struct udev_list_entry *devices = udev_enumerate_get_list_entry(enumerate); struct udev_list_entry *dev_list_entry;