Coverity #807: Fix a memory leak in XFixesExpandRegion.

This commit is contained in:
Adam Jackson 2006-03-15 16:49:04 +00:00
parent a3ef63696c
commit 5e106a71b9
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,9 @@
* hw/xfree86/common/xf86VidMode.c:
Coverity #490: Fix a range check in xf86vidmode extension.
* xfixes/region.c:
Coverity #807: Fix a memory leak in XFixesExpandRegion.
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
* hw/xfree86/dri/dri.c: (DRIExtensionInit):

View File

@ -839,6 +839,7 @@ ProcXFixesExpandRegion (ClientPtr client)
REGION_INIT (pScreen, &r, &pTmp[i], 0);
REGION_UNION (pScreen, pDestination, pDestination, &r);
}
xfree(pTmp);
}
if (ret == Success)
ret = client->noClientException;