mirror of https://github.com/acidanthera/audk.git
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:
parent
bc7e600329
commit
60c65d37e2
|
@ -535,29 +535,28 @@ Error:
|
||||||
//
|
//
|
||||||
if (Private->GraphicsOutput != NULL) {
|
if (Private->GraphicsOutput != NULL) {
|
||||||
gBS->CloseProtocol (
|
gBS->CloseProtocol (
|
||||||
Controller,
|
Controller,
|
||||||
&gEfiGraphicsOutputProtocolGuid,
|
&gEfiGraphicsOutputProtocolGuid,
|
||||||
This->DriverBindingHandle,
|
This->DriverBindingHandle,
|
||||||
Controller
|
Controller
|
||||||
);
|
);
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
||||||
gBS->CloseProtocol (
|
gBS->CloseProtocol (
|
||||||
Controller,
|
Controller,
|
||||||
&gEfiUgaDrawProtocolGuid,
|
&gEfiUgaDrawProtocolGuid,
|
||||||
This->DriverBindingHandle,
|
This->DriverBindingHandle,
|
||||||
Controller
|
Controller
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Private->LineBuffer != NULL) {
|
||||||
|
FreePool (Private->LineBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Free private data
|
// Free private data
|
||||||
//
|
//
|
||||||
if (Private != NULL) {
|
FreePool (Private);
|
||||||
if (Private->LineBuffer != NULL) {
|
|
||||||
FreePool (Private->LineBuffer);
|
|
||||||
}
|
|
||||||
FreePool (Private);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -642,13 +641,14 @@ GraphicsConsoleControllerDriverStop (
|
||||||
mFirstAccessFlag = TRUE;
|
mFirstAccessFlag = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Private->LineBuffer != NULL) {
|
||||||
|
FreePool (Private->LineBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Free our instance data
|
// Free our instance data
|
||||||
//
|
//
|
||||||
if (Private != NULL) {
|
FreePool (Private);
|
||||||
FreePool (Private->LineBuffer);
|
|
||||||
FreePool (Private);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in New Issue