Revision: 17199
          http://sourceforge.net/p/edk2/code/17199
Author:   jcarsey
Date:     2015-04-23 20:28:36 +0000 (Thu, 23 Apr 2015)
Log Message:
-----------
ShellPkg: Remove memory leak when printing help and there are dynamic commands 
installed

The list of handles needs to be freed.

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/Library/UefiShellLevel3CommandsLib/Help.c

Modified: trunk/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c       
2015-04-23 20:27:53 UTC (rev 17198)
+++ trunk/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c       
2015-04-23 20:28:36 UTC (rev 17199)
@@ -1,7 +1,7 @@
 /** @file
   Main file for Help shell level 3 function.
 
-  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved. <BR>
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved. <BR>
   Copyright (c) 2014, ARM Limited. All rights reserved. <BR>
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
 
@@ -97,6 +97,8 @@
     }
   }
 
+  SHELL_FREE_NON_NULL(CommandHandleList);
+
   return (Found ? EFI_SUCCESS : Status);
 
 }


------------------------------------------------------------------------------
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