-fix leak
authorChristian Grothoff <christian@grothoff.org>
Sun, 5 Oct 2014 12:28:41 +0000 (12:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 5 Oct 2014 12:28:41 +0000 (12:28 +0000)
src/peerstore/gnunet-service-peerstore.c

index 4ea50cedb26723c5fa5c21a7c4288d69616fdecd..ed5b14eb9b70e4998e303f9ac13067a27c7ce635 100644 (file)
@@ -349,6 +349,7 @@ handle_iterate (void *cls, struct GNUNET_SERVER_Client *client,
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 _("Sub system not supplied in client iterate request.\n"));
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+    PEERSTORE_destroy_record (record);
     return;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,