[PATCH xf86-video-ati 2/4] Free memory returned by xf86GetEntityInfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michel Dänzer <michel.daenzer@xxxxxxx>

We were leaking it.

(Ported from amdgpu commit cfccf4c4e7e5c73fe4040fabeb1b43283cf29b33)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_kms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index df438768c..f79af3415 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -228,6 +228,7 @@ static void RADEONFreeRec(ScrnInfoPtr pScrn)
 	info->accel_state = NULL;
     }
 
+    free(info->pEnt);
     free(pScrn->driverPrivate);
     pScrn->driverPrivate = NULL;
 }
-- 
2.14.2



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux