From 2a0473573ee08b1a4d3e9e7a44dfce24d078b99e Mon Sep 17 00:00:00 2001 From: Jaben Carsey Date: Thu, 23 Apr 2015 20:27:53 +0000 Subject: 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 Reviewed-by: Qiu Shumin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17198 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Include/Library/HandleParsingLib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ShellPkg/Include') diff --git a/ShellPkg/Include/Library/HandleParsingLib.h b/ShellPkg/Include/Library/HandleParsingLib.h index 1c9ed49..441f65f 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.
+ Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.
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. -- cgit v1.1