fix memory leak
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:30:54 +0000 (17:30 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:30:54 +0000 (17:30 +0100)
src/consensus/gnunet-service-consensus.c

index ba84f64a2b8d1c3bc56f499928422968372658ae..7911db8b041d817e2cceae44fa7479baaf17cd5e 100644 (file)
@@ -905,7 +905,7 @@ cmp_uint64_t (const void *pa, const void *pb)
  * in the result set.
  *
  * @param cls closure
- * @param element a result element, only valid if status is GNUNET_SET_STATUS_OK
+ * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK
  * @param current_size current set size
  * @param status see enum GNUNET_SET_Status
  */
@@ -1022,6 +1022,7 @@ set_result_cb (void *cls,
                     "P%u: lower bound %llu\n",
                     session->local_peer_idx,
                     (long long) session->lower_bound);
+        GNUNET_free (copy);
       }
       return;
     }