From: Tvrtko Ursulin <tvrtko.ursu...@intel.com>

Fix a possible oversight.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursu...@intel.com>
---
 lib/igt_device_scan.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c
index 3c23fe0eb520..a30433ae2cff 100644
--- a/lib/igt_device_scan.c
+++ b/lib/igt_device_scan.c
@@ -814,6 +814,11 @@ void igt_devices_free(void)
                igt_device_free(dev);
                free(dev);
        }
+
+       igt_list_for_each_entry_safe(dev, tmp, &igt_devs.filtered, link) {
+               igt_list_del(&dev->link);
+               free(dev);
+       }
 }
 
 /**
-- 
2.32.0

Reply via email to