leaks & warns
authorCarlo von lynX <lynX@time.to.get.psyced.org>
Wed, 3 Aug 2016 20:28:45 +0000 (20:28 +0000)
committerCarlo von lynX <lynX@time.to.get.psyced.org>
Wed, 3 Aug 2016 20:28:45 +0000 (20:28 +0000)
po/POTFILES.in
src/psyc/test_psyc.c
src/psycstore/test_psycstore.c
src/social/gnunet-service-social.c
src/social/gnunet-social.c
src/social/test_social.c

index 1c2e5f40eb464d20d0b7d4e384abd9bf79ddedef..ba49eeec1937fb0e3775071c3a026f35df4ee5f8 100644 (file)
@@ -64,6 +64,7 @@ src/conversation/gnunet-service-conversation.c
 src/conversation/microphone.c
 src/conversation/plugin_gnsrecord_conversation.c
 src/conversation/speaker.c
+src/core/core_api_2.c
 src/core/core_api.c
 src/core/core_api_monitor_peers.c
 src/core/core_api_mq.c
@@ -71,7 +72,6 @@ src/core/gnunet-core.c
 src/core/gnunet-service-core.c
 src/core/gnunet-service-core_clients.c
 src/core/gnunet-service-core_kx.c
-src/core/gnunet-service-core_neighbours.c
 src/core/gnunet-service-core_sessions.c
 src/core/gnunet-service-core_typemap.c
 src/curl/curl.c
@@ -405,9 +405,8 @@ src/transport/plugin_transport_unix.c
 src/transport/plugin_transport_wlan.c
 src/transport/transport_api_address_to_string.c
 src/transport/transport_api_blacklist.c
-src/transport/transport_api.c
 src/transport/transport_api_core.c
-src/transport/transport_api_get_hello.c
+src/transport/transport_api_hello_get.c
 src/transport/transport_api_manipulation.c
 src/transport/transport_api_monitor_peers.c
 src/transport/transport_api_monitor_plugins.c
index 329ad5b25f1484899939d5f8d9d8392d8908ec97..7d39d8031b9ceee3a6fa886ccd80dc0190b334f1 100644 (file)
@@ -621,7 +621,7 @@ tmit_notify_mod (void *cls, uint16_t *data_size, void *data, uint8_t *oper,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Test #%d: Transmit notify modifier: %u bytes available, "
               "%u modifiers left to process.\n",
-              test, *data_size, GNUNET_PSYC_env_get_count (tmit->env));
+              test, *data_size, (unsigned int) GNUNET_PSYC_env_get_count (tmit->env));
 
   uint16_t name_size = 0;
   size_t value_size = 0;
index 6741858ee833ac60f3a82753f719c64c1956d518..37e6b657cdd3f0c31e5f920df764772243bdbeb9 100644 (file)
@@ -195,7 +195,7 @@ state_result (void *cls,
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "  variable %s differs\nReceived: %.*s\nExpected: %.*s\n",
-                name, value_size, (char*) value, val_size, (char*) val);
+                name, (int) value_size, (char*) value, (int) val_size, (char*) val);
     GNUNET_assert (0);
     return GNUNET_SYSERR;
   }
index e499130d4800ce64431d3991793515a83a6b19c8..afcd59b5d241cda3a2f23b174bd3c80ed1470753 100644 (file)
@@ -1004,6 +1004,7 @@ place_recv_save_data (void *cls,
     if (plc->file_offset != GNUNET_DISK_file_seek
                            (fh, plc->file_offset, GNUNET_DISK_SEEK_SET)) {
       GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "seek", filename);
+      GNUNET_DISK_file_close (fh);
       GNUNET_free (filename);
       return;
     }
index 5aa74c81a820c48a297ecf0e6b0ae0dd85e3ab24..39ebff442ae3a97eb099a69d91ad850a9f0c2848 100644 (file)
@@ -936,8 +936,10 @@ guest_reconnected (void *cls, int result,
                    const struct GNUNET_CRYPTO_EddsaPublicKey *place_pub_key,
                    uint64_t max_message_id)
 {
+  char *place_pub_str = GNUNET_CRYPTO_eddsa_public_key_to_string (place_pub_key);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Guest reconnected to place %s.\n", GNUNET_CRYPTO_eddsa_public_key_to_string(place_pub_key));
+              "Guest reconnected to place %s.\n", place_pub_str);
+  GNUNET_free (place_pub_str);
 
   if (op_guest_leave) {
     guest_leave ();
index eb32a031fe2c365152bccb65bc6b5885f66c03c9..406f5cb676cdf3b8745c1abf64131f2b66a4bd98 100644 (file)
@@ -1085,7 +1085,7 @@ host_answer_door (void *cls,
               (uint8_t) test, join_req_count);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "%s\n%.*s\n",
-              method_name, data_size, (const char *) data);
+              method_name, (int) data_size, (const char *) data);
 
   switch (test)
   {