diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-14 23:32:22 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-14 23:32:22 +0000 |
commit | 1b04e313920447e4c1f42bdd5a61f188d463210c (patch) | |
tree | 80b25d110b5d8dd93f857e012804a65542ef8ada /hw/xfree86/common/xf86Helper.c | |
parent | 6545051902f2ce00c98bd1373f97ebc942667e9c (diff) |
Coverity #847, #848, #849: Three more memory leaks.
Diffstat (limited to 'hw/xfree86/common/xf86Helper.c')
-rw-r--r-- | hw/xfree86/common/xf86Helper.c | 3 |
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; } |