Commit 1b04e313 authored by Adam Jackson's avatar Adam Jackson 🎧

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

parent 65450519
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:
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment