Free pRADEONEnt memory in RADEONFreeRec

We were leaking it.

(Inspired by amdgpu commit 9d84934309e4ccd9a43c73d958b8ff10ef2fc990)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Michel Dänzer
2017-10-20 16:51:16 +02:00
parent b93ae9b159
commit ec90c94881

View File

@@ -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;
}
}