Revision: 17198
          http://sourceforge.net/p/edk2/code/17198
Author:   jcarsey
Date:     2015-04-23 20:27:53 +0000 (Thu, 23 Apr 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Qiu Shumin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Include/Library/HandleParsingLib.h

Modified: trunk/edk2/ShellPkg/Include/Library/HandleParsingLib.h
===================================================================
--- trunk/edk2/ShellPkg/Include/Library/HandleParsingLib.h      2015-04-23 
08:53:39 UTC (rev 17197)
+++ trunk/edk2/ShellPkg/Include/Library/HandleParsingLib.h      2015-04-23 
20:27:53 UTC (rev 17198)
@@ -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 @@
 /**
   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 @@
 /**
   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.


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to