From 54f15a414130f89832b5c2604b0b44e7e4c6709f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 17 Sep 2009 18:14:32 -0700 Subject: [PATCH] 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 Signed-off-by: Peter Hutterer --- hw/xfree86/common/xf86Init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 8f2cdf6aa..1242de97d 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -439,7 +439,7 @@ probe_devices_from_device_sections(DriverPtr drvp) } } } - + xfree(devList); return foundScreen; }