[PATCH 10/11] xfree86: fix memory leak in configLayout

Tiago Vignatti tiago.vignatti at nokia.com
Fri Mar 25 11:41:52 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 hw/xfree86/common/xf86Config.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 4b897a1..82754fc 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -1659,6 +1659,7 @@ configLayout(serverLayoutPtr servlayoutp, XF86ConfLayoutPtr conf_layout,
     while (idp) {
 	if (!configDevice(&gdp[count], idp->inactive_device, FALSE)) {
 	    free(gdp);
+            free(slp);
 	    return FALSE;
 	}
         count++;
-- 
1.7.0.4



More information about the xorg-devel mailing list