fixing 1722
authorChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 10:26:40 +0000 (10:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 10:26:40 +0000 (10:26 +0000)
src/util/client.c

index 7461a0fe2f3dc98ef6685d0e82b5b89368f59c15..c81c4eef08b7a697e21c650ee37e51e9e6ccc49e 100644 (file)
@@ -335,7 +335,10 @@ do_connect (const char *service_name,
                                                                        unixpath);
              GNUNET_free (unixpath);
              if (sock != NULL)
-               return sock;            
+               {
+                 GNUNET_free (hostname);
+                 return sock;          
+               }
            }
        }
 #endif