diff options
author | Anna Wimbauer <anna.wimbauer@gmx.de> | 2020-04-27 09:28:53 +0200 |
---|---|---|
committer | Anna Wimbauer <anna.wimbauer@gmx.de> | 2020-04-27 09:28:53 +0200 |
commit | e5bc04c4a1499a472f3b6f0bd41c275a8537071f (patch) | |
tree | 29fa88bb7336ac5c148f3c6304304a2b904f02c5 /src/json/json_gnsrecord.c | |
parent | 9a91e41070e368e929e7534c047c8360e60d1901 (diff) | |
parent | 91fd7860cba14c27d52850f91b17060790855145 (diff) | |
download | gnunet-e5bc04c4a1499a472f3b6f0bd41c275a8537071f.tar.gz gnunet-e5bc04c4a1499a472f3b6f0bd41c275a8537071f.zip |
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/json/json_gnsrecord.c')
-rw-r--r-- | src/json/json_gnsrecord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json/json_gnsrecord.c b/src/json/json_gnsrecord.c index bfbdd96ee..37f0c03da 100644 --- a/src/json/json_gnsrecord.c +++ b/src/json/json_gnsrecord.c | |||
@@ -50,10 +50,10 @@ cleanup_recordinfo (struct GnsRecordInfo *gnsrecord_info) | |||
50 | { | 50 | { |
51 | if (NULL != *(gnsrecord_info->rd)) | 51 | if (NULL != *(gnsrecord_info->rd)) |
52 | { | 52 | { |
53 | for (int i = 0; i < *(gnsrecord_info->rd_count); i++) | 53 | for (unsigned int i = 0; i < *(gnsrecord_info->rd_count); i++) |
54 | { | 54 | { |
55 | if (NULL != (*(gnsrecord_info->rd))[i].data) | 55 | if (NULL != (*(gnsrecord_info->rd))[i].data) |
56 | GNUNET_free ((char *) (*(gnsrecord_info->rd))[i].data); | 56 | GNUNET_free_nz ((char *) (*(gnsrecord_info->rd))[i].data); |
57 | } | 57 | } |
58 | GNUNET_free (*(gnsrecord_info->rd)); | 58 | GNUNET_free (*(gnsrecord_info->rd)); |
59 | *(gnsrecord_info->rd) = NULL; | 59 | *(gnsrecord_info->rd) = NULL; |