summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Include
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2015-04-23 20:27:53 +0000
committerjcarsey <jcarsey@Edk2>2015-04-23 20:27:53 +0000
commit2a0473573ee08b1a4d3e9e7a44dfce24d078b99e (patch)
tree1947969ffd4b544ebf3557db189bf6c2f4776dbe /ShellPkg/Include
parent88a539ca5f791000a1d033fbcf9c6c01ad9b9fe0 (diff)
downloadedk2-2a0473573ee08b1a4d3e9e7a44dfce24d078b99e.tar.gz
edk2-2a0473573ee08b1a4d3e9e7a44dfce24d078b99e.tar.bz2
edk2-2a0473573ee08b1a4d3e9e7a44dfce24d078b99e.zip
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
Diffstat (limited to 'ShellPkg/Include')
-rw-r--r--ShellPkg/Include/Library/HandleParsingLib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ShellPkg/Include/Library/HandleParsingLib.h b/ShellPkg/Include/Library/HandleParsingLib.h
index 1c9ed49d6c..441f65fffe 100644
--- a/ShellPkg/Include/Library/HandleParsingLib.h
+++ b/ShellPkg/Include/Library/HandleParsingLib.h
@@ -1,7 +1,7 @@
/** @file
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
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
@@ -357,6 +357,8 @@ ConvertHandleIndexToHandle(
/**
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
then the function will return all handles.
@@ -372,6 +374,8 @@ GetHandleListByProtocol (
/**
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.
@retval NULL A memory allocation failed.