aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-service-peerinfo.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
commite31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch)
tree61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/peerinfo/gnunet-service-peerinfo.c
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 27e0337ee..79af90dd4 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -443,8 +443,8 @@ add_host_to_known_hosts (const struct GNUNET_PeerIdentity *identity)
443 update_hello (identity, r.hello); 443 update_hello (identity, r.hello);
444 if (NULL != r.friend_only_hello) 444 if (NULL != r.friend_only_hello)
445 update_hello (identity, r.friend_only_hello); 445 update_hello (identity, r.friend_only_hello);
446 GNUNET_free_non_null (r.hello); 446 GNUNET_free (r.hello);
447 GNUNET_free_non_null (r.friend_only_hello); 447 GNUNET_free (r.friend_only_hello);
448 GNUNET_free (fn); 448 GNUNET_free (fn);
449 } 449 }
450 } 450 }
@@ -825,7 +825,7 @@ update_hello (const struct GNUNET_PeerIdentity *peer,
825 GNUNET_free (buffer); 825 GNUNET_free (buffer);
826 } 826 }
827 } 827 }
828 GNUNET_free_non_null (fn); 828 GNUNET_free (fn);
829 notify_all (host); 829 notify_all (host);
830} 830}
831 831
@@ -982,7 +982,7 @@ discard_hosts_helper (void *cls, const char *fn)
982 write_pos += new_hello_size; 982 write_pos += new_hello_size;
983 } 983 }
984 read_pos += cur_hello_size; 984 read_pos += cur_hello_size;
985 GNUNET_free_non_null (new_hello); 985 GNUNET_free (new_hello);
986 } 986 }
987 987
988 if (0 < write_pos) 988 if (0 < write_pos)
@@ -1209,8 +1209,8 @@ free_host_entry (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
1209 1209
1210 (void) cls; 1210 (void) cls;
1211 (void) key; 1211 (void) key;
1212 GNUNET_free_non_null (he->hello); 1212 GNUNET_free (he->hello);
1213 GNUNET_free_non_null (he->friend_only_hello); 1213 GNUNET_free (he->friend_only_hello);
1214 GNUNET_free (he); 1214 GNUNET_free (he);
1215 return GNUNET_YES; 1215 return GNUNET_YES;
1216} 1216}