1
0
Fork 0

REVIEW: Memory Leak - FGLinuxEventInput::postinit()

4,995 (40 direct, 4,955 indirect) bytes in 1 blocks are definitely lost
This commit is contained in:
Scott Giese 2020-08-22 21:26:03 -05:00
parent 8e9e16bac6
commit 6c14eaa6e8

View file

@ -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;