mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user