diff --git a/ChangeLog b/ChangeLog index 84865245d..cbd22d122 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-14 Adam Jackson + + * hw/xfree86/common/xf86Helper.c: + Coverity #847, #848, #849: Three more memory leaks. + 2006-04-14 Adam Jackson * hw/dmx/input/dmxcommon.c: diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index f417d24c2..1e7742761 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -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; }