diff options
author | Pauli Nieminen <ext-pauli.nieminen@nokia.com> | 2010-07-22 15:11:27 +0300 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-09-01 14:43:00 +1000 |
commit | adc0697cfcfba295a15d7a307125093cbccd637f (patch) | |
tree | 15f8fd6e658b8aa64cf479f6da338674137816b3 | |
parent | 67cfb66562cd9d39f30fec6fbc38eb1eb5e5b030 (diff) |
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>
-rw-r--r-- | xkb/xkb.c | 1 |
1 files changed, 1 insertions, 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; } } |