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

Michel Dänzer michel at daenzer.net
Thu Oct 19 16:05:35 UTC 2017


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

We were leaking the memory allocated by TimerSet.

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

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 7d582095b..cb0fb3b57 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1624,6 +1624,7 @@ CARD32 cleanup_black_fb(OsTimerPtr timer, CARD32 now, pointer data)
 		drmmode_fb_reference(pAMDGPUEnt->fd, &drmmode_crtc->fb, NULL);
 	}
 
+	TimerFree(timer);
 	return 0;
 }
 
-- 
2.14.2



More information about the amd-gfx mailing list