From: Christian Grothoff Date: Mon, 22 Feb 2010 10:09:34 +0000 (+0000) Subject: fix leak X-Git-Tag: initial-import-from-subversion-38251~22648 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e62186491decd07bcf6f083c2404712cb572787;p=oweals%2Fgnunet.git fix leak --- diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 8b9138044..7efdc6f1d 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c @@ -568,6 +568,8 @@ stop_service (struct GNUNET_SERVER_Client *client, const char *servicename) #endif signal_result (client, servicename, GNUNET_MESSAGE_TYPE_ARM_IS_DOWN); GNUNET_SERVER_receive_done (client, GNUNET_OK); + pos->next = running; + running = pos; return; } @@ -580,6 +582,8 @@ stop_service (struct GNUNET_SERVER_Client *client, const char *servicename) #endif signal_result (client, servicename, GNUNET_MESSAGE_TYPE_ARM_IS_DOWN); GNUNET_SERVER_receive_done (client, GNUNET_OK); + pos->next = running; + running = pos; return; } if (pos->pid == 0)