- memleak
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 12:12:23 +0000 (12:12 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 May 2012 12:12:23 +0000 (12:12 +0000)
src/ats/gnunet-service-ats_addresses.c
src/ats/gnunet-service-ats_scheduling.c

index aff7cede1056f855aa4dea075632a03b1ae8d7cb..865460452c7dc8d573f36b91620b918153a248e4 100644 (file)
@@ -862,8 +862,8 @@ GAS_addresses_destroy_all ()
 void
 GAS_addresses_done ()
 {
-  running = GNUNET_NO;
   GAS_addresses_destroy_all ();
+  running = GNUNET_NO;
   GNUNET_CONTAINER_multihashmap_destroy (addresses);
   addresses = NULL;
 #if HAVE_LIBGLPK
index d8ab0c927190e8169cb255f942f48daf04482e45..563c8f43ccbbb230ca3dd0a15cd6af2af4d644a7 100644 (file)
@@ -317,7 +317,14 @@ GAS_handle_address_in_use (void *cls, struct GNUNET_SERVER_Client *client,
                              ntohl (m->session_id),
                              in_use);
 
-  GNUNET_SERVER_receive_done (client, res);
+  if (res == GNUNET_OK)
+    GNUNET_SERVER_receive_done (client, GNUNET_OK);
+  else
+  {
+    GNUNET_break (0);
+    GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+  }
+
 }
 
 /**