mirror of https://github.com/acidanthera/audk.git
ShellPkg/HandleParsingLib: Caller should free memory from 2 functions
Add a comment for GetHandleListByProtocol and GetHandleListByProtocolList to tell the caller they are responsible for freeing the returned memory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Qiu Shumin <shumin.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17198 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
88a539ca5f
commit
2a0473573e
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Provides interface to advanced shell functionality for parsing both handle and protocol database.
|
Provides interface to advanced shell functionality for parsing both handle and protocol database.
|
||||||
|
|
||||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -357,6 +357,8 @@ ConvertHandleIndexToHandle(
|
||||||
/**
|
/**
|
||||||
Function to get all handles that support a given protocol or all handles.
|
Function to get all handles that support a given protocol or all handles.
|
||||||
|
|
||||||
|
The caller is responsible to free this memory.
|
||||||
|
|
||||||
@param[in] ProtocolGuid The guid of the protocol to get handles for. If NULL
|
@param[in] ProtocolGuid The guid of the protocol to get handles for. If NULL
|
||||||
then the function will return all handles.
|
then the function will return all handles.
|
||||||
|
|
||||||
|
@ -372,6 +374,8 @@ GetHandleListByProtocol (
|
||||||
/**
|
/**
|
||||||
Function to get all handles that support some protocols.
|
Function to get all handles that support some protocols.
|
||||||
|
|
||||||
|
The caller is responsible to free this memory.
|
||||||
|
|
||||||
@param[in] ProtocolGuids A NULL terminated list of protocol GUIDs.
|
@param[in] ProtocolGuids A NULL terminated list of protocol GUIDs.
|
||||||
|
|
||||||
@retval NULL A memory allocation failed.
|
@retval NULL A memory allocation failed.
|
||||||
|
|
Loading…
Reference in New Issue