mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 23:10:16 +01:00
xfree86: fix bad free configInputDevices
introduced in 93ca526892.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
827ac06d05
commit
1cb73083e5
1 changed files with 2 additions and 1 deletions
|
|
@ -1502,8 +1502,9 @@ configInputDevices(XF86ConfLayoutPtr layout, serverLayoutPtr servlayoutp)
|
|||
while (irp) {
|
||||
indp[count] = xnfalloc(sizeof(IDevRec));
|
||||
if (!configInput(indp[count], irp->iref_inputdev, X_CONFIG)) {
|
||||
while(count--)
|
||||
do {
|
||||
free(indp[count]);
|
||||
} while(count--);
|
||||
free(indp);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue