Author: janderwald
Date: Thu Oct 30 03:35:15 2008
New Revision: 37084
URL:
http://svn.reactos.org/svn/reactos?rev=37084&view=rev
Log:
- Fix a memory leak (CID 625)
Modified:
trunk/reactos/base/applications/network/finger/finger.c
Modified: trunk/reactos/base/applications/network/finger/finger.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/finger/finger.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/finger/finger.c [iso-8859-1] Thu Oct 30
03:35:15 2008
@@ -122,7 +122,7 @@
static void
userlist(int argc, char **argv)
{
- int *used;
+ int *used = NULL;
char **ap, **nargv, **np, **p;
WORD wVersionRequested;
WSADATA wsaData;
@@ -166,6 +166,8 @@
/* Bring down winsock */
WSACleanup();
+ free(nargv);
+ free(used);
exit(0);
}