Remove another if (E != NULL) check around free(E)
I wonder if there are any other patterns we haven't seen yet? Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b2015a2c01
commit
2dc5ba4a1b
|
@ -98,8 +98,6 @@ fbdevHWFreeRec(ScrnInfoPtr pScrn)
|
|||
{
|
||||
if (fbdevHWPrivateIndex < 0)
|
||||
return;
|
||||
if (FBDEVHWPTR(pScrn) == NULL)
|
||||
return;
|
||||
free(FBDEVHWPTR(pScrn));
|
||||
FBDEVHWPTRLVAL(pScrn) = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user