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/fs/fs_publish.c | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r-- | src/fs/fs_publish.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 8bb57b1e2..fddc65d67 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -85,9 +85,9 @@ publish_cleanup (struct GNUNET_FS_PublishContext *pc) | |||
85 | pc->fhc = NULL; | 85 | pc->fhc = NULL; |
86 | } | 86 | } |
87 | GNUNET_FS_file_information_destroy (pc->fi, NULL, NULL); | 87 | GNUNET_FS_file_information_destroy (pc->fi, NULL, NULL); |
88 | GNUNET_free_non_null (pc->nid); | 88 | GNUNET_free (pc->nid); |
89 | GNUNET_free_non_null (pc->nuid); | 89 | GNUNET_free (pc->nuid); |
90 | GNUNET_free_non_null (pc->serialization); | 90 | GNUNET_free (pc->serialization); |
91 | if (NULL != pc->dsh) | 91 | if (NULL != pc->dsh) |
92 | { | 92 | { |
93 | GNUNET_DATASTORE_disconnect (pc->dsh, GNUNET_NO); | 93 | GNUNET_DATASTORE_disconnect (pc->dsh, GNUNET_NO); |
@@ -650,7 +650,7 @@ publish_content (struct GNUNET_FS_PublishContext *pc) | |||
650 | dirpos->data.file.file_size, raw_data, | 650 | dirpos->data.file.file_size, raw_data, |
651 | &emsg)) | 651 | &emsg)) |
652 | { | 652 | { |
653 | GNUNET_free_non_null (emsg); | 653 | GNUNET_free (emsg); |
654 | GNUNET_free (raw_data); | 654 | GNUNET_free (raw_data); |
655 | raw_data = NULL; | 655 | raw_data = NULL; |
656 | } | 656 | } |
@@ -660,10 +660,10 @@ publish_content (struct GNUNET_FS_PublishContext *pc) | |||
660 | } | 660 | } |
661 | GNUNET_FS_directory_builder_add (db, dirpos->chk_uri, dirpos->meta, | 661 | GNUNET_FS_directory_builder_add (db, dirpos->chk_uri, dirpos->meta, |
662 | raw_data); | 662 | raw_data); |
663 | GNUNET_free_non_null (raw_data); | 663 | GNUNET_free (raw_data); |
664 | dirpos = dirpos->next; | 664 | dirpos = dirpos->next; |
665 | } | 665 | } |
666 | GNUNET_free_non_null (p->data.dir.dir_data); | 666 | GNUNET_free (p->data.dir.dir_data); |
667 | p->data.dir.dir_data = NULL; | 667 | p->data.dir.dir_data = NULL; |
668 | p->data.dir.dir_size = 0; | 668 | p->data.dir.dir_size = 0; |
669 | GNUNET_FS_directory_builder_finish (db, &p->data.dir.dir_size, | 669 | GNUNET_FS_directory_builder_finish (db, &p->data.dir.dir_size, |
@@ -1281,7 +1281,7 @@ suspend_operation (struct GNUNET_FS_FileInformation *fi, | |||
1281 | } | 1281 | } |
1282 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1282 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1283 | "Suspending publish operation\n"); | 1283 | "Suspending publish operation\n"); |
1284 | GNUNET_free_non_null (fi->serialization); | 1284 | GNUNET_free (fi->serialization); |
1285 | fi->serialization = NULL; | 1285 | fi->serialization = NULL; |
1286 | off = (NULL == fi->chk_uri) ? 0 : (GNUNET_YES == fi->is_directory) ? | 1286 | off = (NULL == fi->chk_uri) ? 0 : (GNUNET_YES == fi->is_directory) ? |
1287 | fi->data.dir.dir_size : fi->data.file.file_size; | 1287 | fi->data.dir.dir_size : fi->data.file.file_size; |