Author: cwittich
Date: Sat Jan 19 20:29:49 2008
New Revision: 31894
URL:
http://svn.reactos.org/svn/reactos?rev=31894&view=rev
Log:
fix memory leak
Modified:
trunk/reactos/base/shell/cmd/batch.c
Modified: trunk/reactos/base/shell/cmd/batch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/batch.c?rev…
==============================================================================
--- trunk/reactos/base/shell/cmd/batch.c (original)
+++ trunk/reactos/base/shell/cmd/batch.c Sat Jan 19 20:29:49 2008
@@ -185,6 +185,9 @@
CloseHandle (bc->hBatchFile);
bc->hBatchFile = INVALID_HANDLE_VALUE;
}
+
+ if (bc->raw_params)
+ cmd_free(bc->raw_params);
if (bc->params)
cmd_free(bc->params);