mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 03:10:08 +01:00
xi: fix memory leak in ProcXIQueryDevice
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b6224b3dd8
commit
2a2f15e347
1 changed files with 3 additions and 1 deletions
|
|
@ -107,8 +107,10 @@ ProcXIQueryDevice(ClientPtr client)
|
|||
}
|
||||
|
||||
info = calloc(1, len);
|
||||
if (!info)
|
||||
if (!info) {
|
||||
free(skip);
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
memset(&rep, 0, sizeof(xXIQueryDeviceReply));
|
||||
rep.repType = X_Reply;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue