remove klocwork issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7346 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -549,16 +549,15 @@ Error:
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Free private data
|
||||
//
|
||||
if (Private != NULL) {
|
||||
if (Private->LineBuffer != NULL) {
|
||||
FreePool (Private->LineBuffer);
|
||||
}
|
||||
|
||||
//
|
||||
// Free private data
|
||||
//
|
||||
FreePool (Private);
|
||||
}
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
@@ -642,14 +641,15 @@ GraphicsConsoleControllerDriverStop (
|
||||
mFirstAccessFlag = TRUE;
|
||||
}
|
||||
|
||||
if (Private->LineBuffer != NULL) {
|
||||
FreePool (Private->LineBuffer);
|
||||
}
|
||||
|
||||
//
|
||||
// Free our instance data
|
||||
//
|
||||
if (Private != NULL) {
|
||||
FreePool (Private->LineBuffer);
|
||||
FreePool (Private);
|
||||
}
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user