summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Helper.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-14 23:32:22 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-14 23:32:22 +0000
commit1b04e313920447e4c1f42bdd5a61f188d463210c (patch)
tree80b25d110b5d8dd93f857e012804a65542ef8ada /hw/xfree86/common/xf86Helper.c
parent6545051902f2ce00c98bd1373f97ebc942667e9c (diff)
Coverity #847, #848, #849: Three more memory leaks.
Diffstat (limited to 'hw/xfree86/common/xf86Helper.c')
-rw-r--r--hw/xfree86/common/xf86Helper.c3
1 files changed, 3 insertions, 0 deletions
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;
}