]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/HandleParsingLib: Caller should free memory from 2 functions
authorJaben Carsey <jaben.carsey@intel.com>
Thu, 23 Apr 2015 20:27:53 +0000 (20:27 +0000)
committerjcarsey <jcarsey@Edk2>
Thu, 23 Apr 2015 20:27:53 +0000 (20:27 +0000)
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

ShellPkg/Include/Library/HandleParsingLib.h

index 1c9ed49d6c118e48fb32477b438c49eae7b0172e..441f65fffe83a92f55bc3f304b6e49cea7f4f081 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
 \r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -357,6 +357,8 @@ ConvertHandleIndexToHandle(
 /**\r
   Function to get all handles that support a given protocol or all handles.\r
 \r
+  The caller is responsible to free this memory.\r
+\r
   @param[in] ProtocolGuid The guid of the protocol to get handles for.  If NULL\r
                           then the function will return all handles.\r
 \r
@@ -372,6 +374,8 @@ GetHandleListByProtocol (
 /**\r
   Function to get all handles that support some protocols.\r
 \r
+  The caller is responsible to free this memory.\r
+\r
   @param[in] ProtocolGuids  A NULL terminated list of protocol GUIDs.\r
 \r
   @retval NULL              A memory allocation failed.\r