diff options
author | Carlo von lynX <lynX@time.to.get.psyced.org> | 2016-08-03 20:28:45 +0000 |
---|---|---|
committer | Carlo von lynX <lynX@time.to.get.psyced.org> | 2016-08-03 20:28:45 +0000 |
commit | c5f879125f1c842f679b2c8e95341f3c1d3aa184 (patch) | |
tree | b17e1e834cc199d61611d2176ddde284d245096f /src/social | |
parent | 365eaaa2477eea227fde8503d6af56b3e12a84a1 (diff) | |
download | gnunet-c5f879125f1c842f679b2c8e95341f3c1d3aa184.tar.gz gnunet-c5f879125f1c842f679b2c8e95341f3c1d3aa184.zip |
leaks & warns
Diffstat (limited to 'src/social')
-rw-r--r-- | src/social/gnunet-service-social.c | 1 | ||||
-rw-r--r-- | src/social/gnunet-social.c | 4 | ||||
-rw-r--r-- | src/social/test_social.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c index e499130d4..afcd59b5d 100644 --- a/src/social/gnunet-service-social.c +++ b/src/social/gnunet-service-social.c | |||
@@ -1004,6 +1004,7 @@ place_recv_save_data (void *cls, | |||
1004 | if (plc->file_offset != GNUNET_DISK_file_seek | 1004 | if (plc->file_offset != GNUNET_DISK_file_seek |
1005 | (fh, plc->file_offset, GNUNET_DISK_SEEK_SET)) { | 1005 | (fh, plc->file_offset, GNUNET_DISK_SEEK_SET)) { |
1006 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "seek", filename); | 1006 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "seek", filename); |
1007 | GNUNET_DISK_file_close (fh); | ||
1007 | GNUNET_free (filename); | 1008 | GNUNET_free (filename); |
1008 | return; | 1009 | return; |
1009 | } | 1010 | } |
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index 5aa74c81a..39ebff442 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c | |||
@@ -936,8 +936,10 @@ guest_reconnected (void *cls, int result, | |||
936 | const struct GNUNET_CRYPTO_EddsaPublicKey *place_pub_key, | 936 | const struct GNUNET_CRYPTO_EddsaPublicKey *place_pub_key, |
937 | uint64_t max_message_id) | 937 | uint64_t max_message_id) |
938 | { | 938 | { |
939 | char *place_pub_str = GNUNET_CRYPTO_eddsa_public_key_to_string (place_pub_key); | ||
939 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 940 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
940 | "Guest reconnected to place %s.\n", GNUNET_CRYPTO_eddsa_public_key_to_string(place_pub_key)); | 941 | "Guest reconnected to place %s.\n", place_pub_str); |
942 | GNUNET_free (place_pub_str); | ||
941 | 943 | ||
942 | if (op_guest_leave) { | 944 | if (op_guest_leave) { |
943 | guest_leave (); | 945 | guest_leave (); |
diff --git a/src/social/test_social.c b/src/social/test_social.c index eb32a031f..406f5cb67 100644 --- a/src/social/test_social.c +++ b/src/social/test_social.c | |||
@@ -1085,7 +1085,7 @@ host_answer_door (void *cls, | |||
1085 | (uint8_t) test, join_req_count); | 1085 | (uint8_t) test, join_req_count); |
1086 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1086 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1087 | "%s\n%.*s\n", | 1087 | "%s\n%.*s\n", |
1088 | method_name, data_size, (const char *) data); | 1088 | method_name, (int) data_size, (const char *) data); |
1089 | 1089 | ||
1090 | switch (test) | 1090 | switch (test) |
1091 | { | 1091 | { |