[MORE]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 16 Dec 2012 16:12:30 +0000 (16:12 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 16 Dec 2012 16:12:30 +0000 (16:12 +0000)
Fix memory leak

svn path=/trunk/; revision=57927

reactos/base/applications/cmdutils/more/more.c

index 6755803..d1f3b3c 100644 (file)
@@ -164,6 +164,7 @@ int main (int argc, char **argv)
     if (!LoadString(hApp, IDS_CONTINUE, szCont, sizeof(szCont) / sizeof(TCHAR)))
     {
         /* Shouldn't happen, so exit */
     if (!LoadString(hApp, IDS_CONTINUE, szCont, sizeof(szCont) / sizeof(TCHAR)))
     {
         /* Shouldn't happen, so exit */
+        free(buff);
         return 1;
     }
     szContLength = _tcslen(szCont);
         return 1;
     }
     szContLength = _tcslen(szCont);