[PATCH xf86-video-ati 3/4] Call TimerFree for timer created in LeaveVT

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


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

We were leaking the memory allocated by TimerSet.

(Ported from amdgpu commit 84aad09f18fed6b52b0c073f0bbd675a6de07807)

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 f79af3415..06c8a47fb 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -2484,6 +2484,7 @@ CARD32 cleanup_black_fb(OsTimerPtr timer, CARD32 now, pointer data)
 	drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->fb, NULL);
     }
 
+    TimerFree(timer);
     return 0;
 }
 
-- 
2.14.2



More information about the amd-gfx mailing list