mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-03 17:08:06 +02:00
dix: plug memory leak in freeing TouchClass
==15562== 1,800 bytes in 1 blocks are definitely lost in loss record 298 of 330
==15562== at 0x4A06B6F: calloc (vg_replace_malloc.c:593)
==15562== by 0x4312C7: InitTouchClassDeviceStruct (devices.c:1644)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit 7d722796c6)
This commit is contained in:
parent
6abc41689c
commit
bf115aa906
1 changed files with 1 additions and 0 deletions
|
|
@ -795,6 +795,7 @@ FreeDeviceClass(int type, pointer *class)
|
|||
free((*t)->touches[i].valuators);
|
||||
}
|
||||
|
||||
free((*t)->touches);
|
||||
free((*t));
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue