diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
commit | e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch) | |
tree | 61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/gnsrecord | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/gnsrecord')
-rw-r--r-- | src/gnsrecord/gnsrecord.c | 2 | ||||
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gnsrecord/gnsrecord.c b/src/gnsrecord/gnsrecord.c index 82fb71c06..c6ebd7c29 100644 --- a/src/gnsrecord/gnsrecord.c +++ b/src/gnsrecord/gnsrecord.c | |||
@@ -124,7 +124,7 @@ GNSRECORD_fini () | |||
124 | GNUNET_free (plugin->library_name); | 124 | GNUNET_free (plugin->library_name); |
125 | GNUNET_free (plugin); | 125 | GNUNET_free (plugin); |
126 | } | 126 | } |
127 | GNUNET_free_non_null (gns_plugins); | 127 | GNUNET_free (gns_plugins); |
128 | gns_plugins = NULL; | 128 | gns_plugins = NULL; |
129 | once = 0; | 129 | once = 0; |
130 | num_plugins = 0; | 130 | num_plugins = 0; |
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c index 5410d9546..9ac6fb9e6 100644 --- a/src/gnsrecord/plugin_gnsrecord_dns.c +++ b/src/gnsrecord/plugin_gnsrecord_dns.c | |||
@@ -65,7 +65,7 @@ dns_value_to_string (void *cls, | |||
65 | if ((NULL == ns) || (off != data_size)) | 65 | if ((NULL == ns) || (off != data_size)) |
66 | { | 66 | { |
67 | GNUNET_break_op (0); | 67 | GNUNET_break_op (0); |
68 | GNUNET_free_non_null (ns); | 68 | GNUNET_free (ns); |
69 | return NULL; | 69 | return NULL; |
70 | } | 70 | } |
71 | return ns; | 71 | return ns; |
@@ -80,7 +80,7 @@ dns_value_to_string (void *cls, | |||
80 | if ((NULL == cname) || (off != data_size)) | 80 | if ((NULL == cname) || (off != data_size)) |
81 | { | 81 | { |
82 | GNUNET_break_op (0); | 82 | GNUNET_break_op (0); |
83 | GNUNET_free_non_null (cname); | 83 | GNUNET_free (cname); |
84 | return NULL; | 84 | return NULL; |
85 | } | 85 | } |
86 | return cname; | 86 | return cname; |
@@ -121,7 +121,7 @@ dns_value_to_string (void *cls, | |||
121 | if ((NULL == ptr) || (off != data_size)) | 121 | if ((NULL == ptr) || (off != data_size)) |
122 | { | 122 | { |
123 | GNUNET_break_op (0); | 123 | GNUNET_break_op (0); |
124 | GNUNET_free_non_null (ptr); | 124 | GNUNET_free (ptr); |
125 | return NULL; | 125 | return NULL; |
126 | } | 126 | } |
127 | return ptr; | 127 | return ptr; |