[PATCHv2 13/13] xfree86: fix memory leak in xf86LoadModules

Tiago Vignatti tiago.vignatti at nokia.com
Mon Mar 28 06:14:35 PDT 2011


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

diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index e664ce4..d81303e 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -1433,6 +1433,7 @@ xf86LoadModules(char **list, pointer *optlist)
 	}
 	free(name);
     }
+    free(name);
     return !failed;
 }
 
-- 
1.7.0.4



More information about the xorg-devel mailing list