[PATCH libX11 5/5] fix memleak in error path

walter harms wharms at bfs.de
Tue Apr 26 14:32:20 UTC 2016


free all mem on error
Signed-off-by: walter harms <wharms at bfs.de>

---
 src/xlibi18n/lcGeneric.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xlibi18n/lcGeneric.c b/src/xlibi18n/lcGeneric.c
index 1c78a95..69090f7 100644
--- a/src/xlibi18n/lcGeneric.c
+++ b/src/xlibi18n/lcGeneric.c
@@ -77,6 +77,7 @@ create(
     return lcd;

 err:
+    Xfree(lcd->core);
     Xfree(lcd);
     return (XLCd) NULL;
 }
-- 
2.1.4



More information about the xorg-devel mailing list