- fix memory leak mantis #0002334
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 16:11:09 +0000 (16:11 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 16:11:09 +0000 (16:11 +0000)
src/util/server.c

index 13664a215ca2010450ea432c2b00c8ffe0bbc510..4466a9f93cfd0c8474625921d6fb7eb47d92ce0a 100644 (file)
@@ -1322,7 +1322,7 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
     client->mst = NULL;
   }
   client->reference_count--;
-  if (rc > 0)
+  if (client->reference_count > 0)
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG,
          "RC still positive, not destroying everything.\n");