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

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

 



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

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



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

  Powered by Linux