-fix leak
authorChristian Grothoff <christian@grothoff.org>
Sun, 26 Jun 2016 21:05:54 +0000 (21:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 26 Jun 2016 21:05:54 +0000 (21:05 +0000)
src/datastore/datastore_api.c

index 2856347595e3c9aa2442499478db4f302834f916..bf2f0097a873fb187948c29548b886594288c082 100644 (file)
@@ -267,6 +267,8 @@ free_queue_entry (struct GNUNET_DATASTORE_QueueEntry *qe)
                                h->queue_tail,
                                qe);
   h->queue_size--;
+  if (NULL != qe->env)
+    GNUNET_MQ_discard (qe->env);
   GNUNET_free (qe);
 }