diff options
author | Roland Bär <roland@verifysoft.de> | 2007-08-23 18:33:34 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-08-23 18:33:34 +1000 |
commit | 05c90280e2e17348ceacf760451c9c9e45fd70e5 (patch) | |
tree | 1e2bf33a7804360ebce8cdbd61a7028fd6a02b5f | |
parent | a0d0fcd3bab765b4db25e04884fd8a342abb9c66 (diff) |
radeon: bug 11860 fix some mem leaks
-rw-r--r-- | src/radeon_modes.c | 2 | ||||
-rw-r--r-- | src/radeon_probe.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_modes.c b/src/radeon_modes.c index e1635e09..3315eecc 100644 --- a/src/radeon_modes.c +++ b/src/radeon_modes.c @@ -777,8 +777,10 @@ int RADEONValidateMergeModes(ScrnInfoPtr pScrn1) xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No valid mode found for this DFP/LCD\n"); } + xfree(clockRanges); return 0; } } + xfree(clockRanges); return modesFound; } diff --git a/src/radeon_probe.c b/src/radeon_probe.c index d7ff6437..c697f65c 100644 --- a/src/radeon_probe.c +++ b/src/radeon_probe.c @@ -303,6 +303,7 @@ RADEONProbe(DriverPtr drv, int flags) foundScreen = TRUE; } + xfree(pEnt); pEnt = xf86GetEntityInfo(usedChips[i]); /* create a RADEONEntity for all chips, even with |