From 1fe33b710be26a013090c6c14ae3846940154cab Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 26 Sep 2015 00:28:14 +0200 Subject: use xfree instead of free for xalloced data This was brought in by a backport since in later versions xalloc/xfree have been replaced by malloc/free. --- nx-X11/programs/Xserver/randr/rrmode.c | 2 +- nx-X11/programs/Xserver/randr/rrscreen.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nx-X11/programs/Xserver/randr/rrmode.c b/nx-X11/programs/Xserver/randr/rrmode.c index db0af33b8..de51bec81 100644 --- a/nx-X11/programs/Xserver/randr/rrmode.c +++ b/nx-X11/programs/Xserver/randr/rrmode.c @@ -99,7 +99,7 @@ RRModeCreate (xRRModeInfo *modeInfo, mode->mode.id = FakeClientID(0); if (!AddResource(mode->mode.id, RRModeType, (pointer) mode)) { - free(newModes); + xfree(newModes); return NULL; } modes = newModes; diff --git a/nx-X11/programs/Xserver/randr/rrscreen.c b/nx-X11/programs/Xserver/randr/rrscreen.c index a3851bd60..70a9be0c6 100644 --- a/nx-X11/programs/Xserver/randr/rrscreen.c +++ b/nx-X11/programs/Xserver/randr/rrscreen.c @@ -943,12 +943,12 @@ ProcRRSetScreenConfig (ClientPtr client) if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) { client->errorValue = width; - free(pData); + xfree (pData); return BadValue; } if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) { client->errorValue = height; - free(pData); + xfree (pData); return BadValue; } -- cgit v1.2.3