gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37170 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r37170 - gnunet/src/rps
Date: Sat, 14 May 2016 00:49:23 +0200

Author: ch3
Date: 2016-05-14 00:49:23 +0200 (Sat, 14 May 2016)
New Revision: 37170

Modified:
   gnunet/src/rps/gnunet-service-rps.c
   gnunet/src/rps/gnunet-service-rps_sampler.c
Log:
-rps: try to avoid leaking memory

Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2016-05-13 22:49:19 UTC (rev 37169)
+++ gnunet/src/rps/gnunet-service-rps.c 2016-05-13 22:49:23 UTC (rev 37170)
@@ -892,6 +892,10 @@
 destroy_cli_ctx (struct ClientContext *cli_ctx)
 {
   GNUNET_assert (NULL != cli_ctx);
+  if (NULL != cli_ctx->mq)
+  {
+    GNUNET_MQ_destroy (cli_ctx->mq);
+  }
   if (NULL != cli_ctx->rep_cls_head)
   {
     LOG (GNUNET_ERROR_TYPE_WARNING,
@@ -2070,6 +2074,7 @@
   CustomPeerMap_destroy (pull_map);
   #ifdef ENABLE_MALICIOUS
   struct AttackedPeer *tmp_att_peer;
+  GNUNET_free (file_name_view_log);
   GNUNET_array_grow (mal_peers, num_mal_peers, 0);
   if (NULL != mal_peer_set)
     GNUNET_CONTAINER_multipeermap_destroy (mal_peer_set);

Modified: gnunet/src/rps/gnunet-service-rps_sampler.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_sampler.c 2016-05-13 22:49:19 UTC (rev 
37169)
+++ gnunet/src/rps/gnunet-service-rps_sampler.c 2016-05-13 22:49:23 UTC (rev 
37170)
@@ -327,6 +327,7 @@
                "-%" PRIu32 ": %s",
                i,
                sampler->sampler_elements[i]->file_name);
+      GNUNET_free (sampler->sampler_elements[i]);
     }
 
     GNUNET_array_grow (sampler->sampler_elements,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]