Author: akhaldi
Date: Thu Aug 1 15:40:34 2013
New Revision: 59612
URL:
http://svn.reactos.org/svn/reactos?rev=59612&view=rev
Log:
[CMD]
* Plug a memory leak. Based on a patch by Samuel Serapion.
CORE-7297 #resolve #comment Fixed in r59611. Thanks.
Modified:
trunk/reactos/base/shell/cmd/misc.c
Modified: trunk/reactos/base/shell/cmd/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/misc.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/misc.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/misc.c [iso-8859-1] Thu Aug 1 15:40:34 2013
@@ -194,6 +194,7 @@
*arg = cmd_realloc (oldarg, (*ac + 2) * sizeof (LPTSTR));
if (NULL == *arg)
{
+ cmd_free (q);
*arg = oldarg;
return FALSE;
}