[PATCH libX11 4/5 V2] fix memleak in error path
walter harms
wharms at bfs.de
Tue Apr 26 15:58:16 UTC 2016
V2: remove unneeded NULL (reported by eric.engestrom at imgtec.com)
fix mem leak in error path
Signed-off-by: walter harms <wharms at bfs.de>
---
src/xlibi18n/lcPublic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xlibi18n/lcPublic.c b/src/xlibi18n/lcPublic.c
index 98a7435..f35f17a 100644
--- a/src/xlibi18n/lcPublic.c
+++ b/src/xlibi18n/lcPublic.c
@@ -97,6 +97,7 @@ create(
return lcd;
err:
+ Xfree(lcd->core);
Xfree(lcd);
return (XLCd) NULL;
}
--
2.1.4
More information about the xorg-devel
mailing list