[PATCH 2/8] probe_devices_from_device_sections: don't leak list of devices
Keith Packard
keithp at keithp.com
Thu Sep 17 18:14:32 PDT 2009
xf86MatchDevice returned malloc'd storage containing the list of
devices to look at; make sure that gets freed.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
hw/xfree86/common/xf86Init.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index f9224b1..c9a05d8 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;
}
--
1.6.3.3
More information about the xorg-devel
mailing list