diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-10-20 16:51:16 +0200 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2017-10-20 16:51:16 +0200 |
commit | ec90c94881239791d0a66a02fc6d003c73a6c1f3 (patch) | |
tree | b5d44ddcefde327ed7b4befd23d5708c847ca7bd /src/radeon_kms.c | |
parent | b93ae9b159790e8a979e9d5d567a0e6fccd7d08a (diff) |
Free pRADEONEnt memory in RADEONFreeRec
We were leaking it.
(Inspired by amdgpu commit 9d84934309e4ccd9a43c73d958b8ff10ef2fc990)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 9ef51693..df438768 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -218,7 +218,8 @@ static void RADEONFreeRec(ScrnInfoPtr pScrn) pRADEONEnt->platform_dev->flags & XF86_PDEV_SERVER_FD)) #endif drmClose(pRADEONEnt->fd); - pRADEONEnt->fd = 0; + free(pPriv->ptr); + pPriv->ptr = NULL; } } |