Free memory returned by xf86GetEntityInfo

We were leaking it.

(Ported from amdgpu commit cfccf4c4e7e5c73fe4040fabeb1b43283cf29b33)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Michel Dänzer
2017-10-20 17:13:36 +02:00
committed by Michel Dänzer
parent ec90c94881
commit d588015f4f

View File

@@ -228,6 +228,7 @@ static void RADEONFreeRec(ScrnInfoPtr pScrn)
info->accel_state = NULL;
}
free(info->pEnt);
free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;
}