From f45d2f9e0b9f0a1d2ec97bf777b95ec20bca77ad Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Thu, 19 Mar 2009 20:29:53 +0100 Subject: [PATCH] xkb: plug a memory leak in XkbCopySrvLedInfo --- xkb/xkbLEDs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c index c61296b..a70ac84 100644 --- a/xkb/xkbLEDs.c +++ b/xkb/xkbLEDs.c @@ -643,7 +643,7 @@ XkbCopySrvLedInfo( DeviceIntPtr from, else sli_new->fb.lf = lf; - if (sli_new->flags & XkbSLI_IsDefault) { + if (!(sli_new->flags & XkbSLI_IsDefault)) { sli_new->names= _XkbTypedCalloc(XkbNumIndicators,Atom); sli_new->maps= _XkbTypedCalloc(XkbNumIndicators,XkbIndicatorMapRec); } /* else sli_new->names/maps is pointing to -- 1.6.2