gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4307 - GNUnet/src/util/network_client


From: grothoff
Subject: [GNUnet-SVN] r4307 - GNUnet/src/util/network_client
Date: Thu, 18 Jan 2007 22:06:59 -0800 (PST)

Author: grothoff
Date: 2007-01-18 22:06:57 -0800 (Thu, 18 Jan 2007)
New Revision: 4307

Modified:
   GNUnet/src/util/network_client/tcpio.c
Log:
fixing mantis 1173

Modified: GNUnet/src/util/network_client/tcpio.c
===================================================================
--- GNUnet/src/util/network_client/tcpio.c      2007-01-18 23:42:03 UTC (rev 
4306)
+++ GNUnet/src/util/network_client/tcpio.c      2007-01-19 06:06:57 UTC (rev 
4307)
@@ -95,18 +95,20 @@
     return 2087;
   }
   pos = strstr(res, ":");
-  if (pos == NULL)
+  if (pos == NULL) {
+    FREE(res);
     return 2087;
+  }
   pos++;
   if (1 != SSCANF(pos, "%u", &port)) {
     GE_LOG(ectx,
           GE_ERROR | GE_USER | GE_BULK,
           _("Syntax error in configuration entry HOST in section NETWORK: 
`%s'"),
           pos);
-    FREE(pos);
+    FREE(res);
     return 2087;
   }
-  FREE(pos);
+  FREE(res);
   return (unsigned short) port;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]