Coverity #847, #848, #849: Three more memory leaks.

This commit is contained in:
Adam Jackson 2006-04-14 23:32:22 +00:00
parent 6545051902
commit 1b04e31392
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/common/xf86Helper.c:
Coverity #847, #848, #849: Three more memory leaks.
2006-04-14 Adam Jackson <ajax@freedesktop.org>
* hw/dmx/input/dmxcommon.c:

View File

@ -2677,6 +2677,7 @@ xf86ConfigIsaEntity(ScrnInfoPtr pScrn, int scrnFlag, int entityIndex,
if (!pEnt->active) {
xf86ConfigIsaEntityInactive(pEnt, i_chip, res, init, enter,
leave, private);
xfree(pEnt);
return pScrn;
}
@ -2714,6 +2715,7 @@ xf86ConfigPciEntity(ScrnInfoPtr pScrn, int scrnFlag, int entityIndex,
if (!pEnt->active) {
xf86ConfigPciEntityInactive(pEnt, p_chip, res, init, enter,
leave, private);
xfree(pEnt);
return pScrn;
}
@ -2755,6 +2757,7 @@ xf86ConfigFbEntity(ScrnInfoPtr pScrn, int scrnFlag, int entityIndex,
if (!pEnt->active) {
xf86ConfigFbEntityInactive(pEnt, init, enter, leave, private);
xfree(pEnt);
return pScrn;
}