probe_devices_from_device_sections: don't leak list of devices

xf86MatchDevice returned malloc'd storage containing the list of
devices to look at; make sure that gets freed.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Keith Packard 2009-09-17 18:14:32 -07:00 committed by Peter Hutterer
parent 8b5086250a
commit 54f15a4141

View File

@ -439,7 +439,7 @@ probe_devices_from_device_sections(DriverPtr drvp)
}
}
}
xfree(devList);
return foundScreen;
}