mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 14:00:03 +01:00
xkb: Fix memory leak in error path
map is allocated but not freed if reply length and data don't match. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
67cfb66562
commit
adc0697cfc
1 changed files with 1 additions and 0 deletions
|
|
@ -3019,6 +3019,7 @@ register unsigned bit;
|
|||
to = (CARD8 *)wire;
|
||||
if ((to-map)!=length) {
|
||||
client->errorValue = _XkbErrCode2(0xff,length);
|
||||
free(map);
|
||||
return BadLength;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue