Coverity #807: Fix a memory leak in XFixesExpandRegion.
This commit is contained in:
parent
a3ef63696c
commit
5e106a71b9
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user