mirror of
https://github.com/X11Libre/xf86-video-chips.git
synced 2026-03-24 01:24:44 +00:00
Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -949,7 +949,7 @@ CHIPSProbe(DriverPtr drv, int flags)
|
||||
}
|
||||
|
||||
}
|
||||
xfree(usedChips);
|
||||
free(usedChips);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -981,12 +981,12 @@ CHIPSProbe(DriverPtr drv, int flags)
|
||||
pScrn->ValidMode = CHIPSValidMode;
|
||||
foundScreen = TRUE;
|
||||
}
|
||||
xfree(usedChips);
|
||||
free(usedChips);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
xfree(devSections);
|
||||
free(devSections);
|
||||
return foundScreen;
|
||||
}
|
||||
#endif
|
||||
@@ -4126,7 +4126,7 @@ CHIPSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
}
|
||||
if (!miInitializeBanking(pScreen, pScrn->virtualX, pScrn->virtualY,
|
||||
pScrn->displayWidth, pBankInfo)) {
|
||||
xfree(pBankInfo);
|
||||
free(pBankInfo);
|
||||
pBankInfo = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user