Author: cwittich
Date: Fri Sep 4 20:15:01 2015
New Revision: 69011
URL:
http://svn.reactos.org/svn/reactos?rev=69011&view=rev
Log:
[WHOAMI] fix a memory leak CID 1322119
Modified:
trunk/reactos/base/applications/cmdutils/whoami/whoami.c
Modified: trunk/reactos/base/applications/cmdutils/whoami/whoami.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/whoami/whoami.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/whoami/whoami.c [iso-8859-1] Fri Sep 4
20:15:01 2015
@@ -421,6 +421,9 @@
WhoamiFree(pTable->Content[i * pTable->Cols + j]);
WhoamiFree(pTable);
+
+ if (PrintFormat != csv)
+ HeapFree(GetProcessHeap(), 0, ColLength);
}
int WhoamiLogonId(void)