mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
Coverity #826: Fix potential memory leak.
This commit is contained in:
@@ -50,6 +50,9 @@ Fri Apr 7 13:46:45 2006 Søren Sandmann <sandmann@redhat.com>
|
||||
* xkb/xkb.c:
|
||||
Coverity #844, #845, #846: Fix memory leaks.
|
||||
|
||||
* xkb/XKBMisc.c:
|
||||
Coverity #826: Fix potential memory leak.
|
||||
|
||||
2006-04-06 Keith Packard <keithp@keithp.com>
|
||||
|
||||
* fb/fbstipple.c: (fbEvenStipple):
|
||||
|
||||
@@ -466,8 +466,11 @@ unsigned changed,tmp;
|
||||
unsigned int new_vmodmask;
|
||||
changed|= XkbKeyActionsMask;
|
||||
pActs= XkbResizeKeyActions(xkb,key,nSyms);
|
||||
if (!pActs)
|
||||
if (!pActs) {
|
||||
if (nSyms > IBUF_SIZE)
|
||||
xfree(interps);
|
||||
return False;
|
||||
}
|
||||
new_vmodmask= 0;
|
||||
for (n=0;n<nSyms;n++) {
|
||||
if (interps[n]) {
|
||||
|
||||
Reference in New Issue
Block a user