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

Michel Dänzer michel at daenzer.net
Fri Oct 20 15:28:18 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

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



More information about the amd-gfx mailing list