Author: pschweitzer
Date: Sun Dec 16 16:12:30 2012
New Revision: 57927
URL:
http://svn.reactos.org/svn/reactos?rev=57927&view=rev
Log:
[MORE]
Fix memory leak
Modified:
trunk/reactos/base/applications/cmdutils/more/more.c
Modified: trunk/reactos/base/applications/cmdutils/more/more.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/more/more.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/more/more.c [iso-8859-1] Sun Dec 16 16:12:30
2012
@@ -164,6 +164,7 @@
if (!LoadString(hApp, IDS_CONTINUE, szCont, sizeof(szCont) / sizeof(TCHAR)))
{
/* Shouldn't happen, so exit */
+ free(buff);
return 1;
}
szContLength = _tcslen(szCont);