Commit c9f6e60d authored by Daniel Stone's avatar Daniel Stone

Coverity #826: Fix potential memory leak.

parent 1357af24
......@@ -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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment