From 9eb71d0d60e3113e63e8b0e1a843ab70fb879b7a Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 9 May 2012 16:11:09 +0000 Subject: [PATCH] - fix memory leak mantis #0002334 --- src/util/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/server.c b/src/util/server.c index 13664a215..4466a9f93 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -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"); -- 2.25.1