[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11252 - gnunet/src/arm
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11252 - gnunet/src/arm |
Date: |
Fri, 7 May 2010 12:46:59 +0200 |
Author: nevans
Date: 2010-05-07 12:46:59 +0200 (Fri, 07 May 2010)
New Revision: 11252
Modified:
gnunet/src/arm/arm_api.c
Log:
missing free
Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c 2010-05-07 10:37:40 UTC (rev 11251)
+++ gnunet/src/arm/arm_api.c 2010-05-07 10:46:59 UTC (rev 11252)
@@ -449,6 +449,8 @@
if (arm_shutdown_ctx->cb != NULL)
arm_shutdown_ctx->cb (arm_shutdown_ctx->cb_cls, reason);
+
+ GNUNET_free(arm_shutdown_ctx);
}
@@ -469,15 +471,14 @@
{
struct ARM_ShutdownContext *arm_shutdown_ctx;
- arm_shutdown_ctx = GNUNET_malloc(sizeof(struct ARM_ShutdownContext));
- arm_shutdown_ctx->cb = cb;
- arm_shutdown_ctx->cb_cls = cb_cls;
-
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
_("Stopping service `%s' within %llu ms\n"), service_name,
(unsigned long long) timeout.value);
if (0 == strcasecmp ("arm", service_name))
{
+ arm_shutdown_ctx = GNUNET_malloc(sizeof(struct ARM_ShutdownContext));
+ arm_shutdown_ctx->cb = cb;
+ arm_shutdown_ctx->cb_cls = cb_cls;
GNUNET_CLIENT_service_shutdown (h->sched, h->client, timeout,
&arm_shutdown_callback, arm_shutdown_ctx);
h->client = NULL;
return;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11252 - gnunet/src/arm,
gnunet <=