vesa & radeon_hd: Remove unneeded and incorrect free().
In 47404f12f2, a MemoryDeleter was added
to manage this memory instead of doing it manually; most of the free()s
were removed in that commit, but these were somehow missed.
This commit is contained in:
@@ -113,7 +113,6 @@ init_common(int device, bool isClone)
|
||||
|
||||
if (ioctl(device, RADEON_GET_PRIVATE_DATA, &data,
|
||||
sizeof(radeon_get_private_data)) != 0) {
|
||||
free(gInfo);
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,11 +53,8 @@ init_common(int device, bool isClone)
|
||||
// get basic info from driver
|
||||
|
||||
area_id sharedArea;
|
||||
if (ioctl(device, VESA_GET_PRIVATE_DATA, &sharedArea, sizeof(area_id))
|
||||
!= 0) {
|
||||
free(gInfo);
|
||||
if (ioctl(device, VESA_GET_PRIVATE_DATA, &sharedArea, sizeof(area_id)) != 0)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
AreaDeleter sharedDeleter(clone_area("vesa shared info",
|
||||
(void **)&gInfo->shared_info, B_ANY_ADDRESS,
|
||||
|
||||
Reference in New Issue
Block a user