diff options
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_api.c | 82 | ||||
-rw-r--r-- | src/fs/fs_directory.c | 16 | ||||
-rw-r--r-- | src/fs/fs_dirmetascan.c | 2 | ||||
-rw-r--r-- | src/fs/fs_download.c | 18 | ||||
-rw-r--r-- | src/fs/fs_file_information.c | 10 | ||||
-rw-r--r-- | src/fs/fs_namespace.c | 6 | ||||
-rw-r--r-- | src/fs/fs_publish.c | 14 | ||||
-rw-r--r-- | src/fs/fs_search.c | 22 | ||||
-rw-r--r-- | src/fs/fs_sharetree.c | 4 | ||||
-rw-r--r-- | src/fs/fs_test_lib.c | 4 | ||||
-rw-r--r-- | src/fs/fs_tree.c | 2 | ||||
-rw-r--r-- | src/fs/fs_unindex.c | 8 | ||||
-rw-r--r-- | src/fs/fs_uri.c | 6 | ||||
-rw-r--r-- | src/fs/gnunet-auto-share.c | 6 | ||||
-rw-r--r-- | src/fs/gnunet-directory.c | 4 | ||||
-rw-r--r-- | src/fs/gnunet-publish.c | 6 | ||||
-rw-r--r-- | src/fs/gnunet-search.c | 4 | ||||
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 4 | ||||
-rw-r--r-- | src/fs/test_fs_file_information.c | 4 | ||||
-rw-r--r-- | src/fs/test_fs_namespace.c | 2 |
20 files changed, 112 insertions, 112 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 3d2ba3e99..920786146 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -570,7 +570,7 @@ GNUNET_FS_data_reader_copy_ (void *cls, | |||
570 | return 0; | 570 | return 0; |
571 | if (0 == max) | 571 | if (0 == max) |
572 | { | 572 | { |
573 | GNUNET_free_non_null (data); | 573 | GNUNET_free (data); |
574 | return 0; | 574 | return 0; |
575 | } | 575 | } |
576 | GNUNET_memcpy (buf, &data[offset], max); | 576 | GNUNET_memcpy (buf, &data[offset], max); |
@@ -1132,15 +1132,15 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h, | |||
1132 | GNUNET_free (filename); | 1132 | GNUNET_free (filename); |
1133 | filename = NULL; | 1133 | filename = NULL; |
1134 | } | 1134 | } |
1135 | GNUNET_free_non_null (ksks); | 1135 | GNUNET_free (ksks); |
1136 | GNUNET_free_non_null (skss); | 1136 | GNUNET_free (skss); |
1137 | GNUNET_free_non_null (chks); | 1137 | GNUNET_free (chks); |
1138 | return ret; | 1138 | return ret; |
1139 | cleanup: | 1139 | cleanup: |
1140 | GNUNET_free_non_null (ksks); | 1140 | GNUNET_free (ksks); |
1141 | GNUNET_free_non_null (chks); | 1141 | GNUNET_free (chks); |
1142 | GNUNET_free_non_null (skss); | 1142 | GNUNET_free (skss); |
1143 | GNUNET_free_non_null (filename); | 1143 | GNUNET_free (filename); |
1144 | GNUNET_FS_file_information_destroy (ret, NULL, NULL); | 1144 | GNUNET_FS_file_information_destroy (ret, NULL, NULL); |
1145 | return NULL; | 1145 | return NULL; |
1146 | } | 1146 | } |
@@ -1417,11 +1417,11 @@ GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *fi) | |||
1417 | GNUNET_break (0); | 1417 | GNUNET_break (0); |
1418 | goto cleanup; | 1418 | goto cleanup; |
1419 | } | 1419 | } |
1420 | GNUNET_free_non_null (chks); | 1420 | GNUNET_free (chks); |
1421 | chks = NULL; | 1421 | chks = NULL; |
1422 | GNUNET_free_non_null (ksks); | 1422 | GNUNET_free (ksks); |
1423 | ksks = NULL; | 1423 | ksks = NULL; |
1424 | GNUNET_free_non_null (skss); | 1424 | GNUNET_free (skss); |
1425 | skss = NULL; | 1425 | skss = NULL; |
1426 | 1426 | ||
1427 | switch (b) | 1427 | switch (b) |
@@ -1527,9 +1527,9 @@ GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *fi) | |||
1527 | cleanup: | 1527 | cleanup: |
1528 | if (NULL != wh) | 1528 | if (NULL != wh) |
1529 | (void) GNUNET_BIO_write_close (wh, NULL); | 1529 | (void) GNUNET_BIO_write_close (wh, NULL); |
1530 | GNUNET_free_non_null (chks); | 1530 | GNUNET_free (chks); |
1531 | GNUNET_free_non_null (ksks); | 1531 | GNUNET_free (ksks); |
1532 | GNUNET_free_non_null (skss); | 1532 | GNUNET_free (skss); |
1533 | fn = get_serialization_file_name (fi->h, | 1533 | fn = get_serialization_file_name (fi->h, |
1534 | GNUNET_FS_SYNC_PATH_FILE_INFO, | 1534 | GNUNET_FS_SYNC_PATH_FILE_INFO, |
1535 | fi->serialization); | 1535 | fi->serialization); |
@@ -1729,10 +1729,10 @@ deserialize_publish_file (void *cls, const char *filename) | |||
1729 | pc->top = GNUNET_FS_make_top (h, &GNUNET_FS_publish_signal_suspend_, pc); | 1729 | pc->top = GNUNET_FS_make_top (h, &GNUNET_FS_publish_signal_suspend_, pc); |
1730 | return GNUNET_OK; | 1730 | return GNUNET_OK; |
1731 | cleanup: | 1731 | cleanup: |
1732 | GNUNET_free_non_null (pc->nid); | 1732 | GNUNET_free (pc->nid); |
1733 | GNUNET_free_non_null (pc->nuid); | 1733 | GNUNET_free (pc->nuid); |
1734 | GNUNET_free_non_null (fi_root); | 1734 | GNUNET_free (fi_root); |
1735 | GNUNET_free_non_null (fi_pos); | 1735 | GNUNET_free (fi_pos); |
1736 | if ((NULL != rh) && (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))) | 1736 | if ((NULL != rh) && (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))) |
1737 | { | 1737 | { |
1738 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1738 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
@@ -2131,7 +2131,7 @@ GNUNET_FS_download_sync_ (struct GNUNET_FS_DownloadContext *dc) | |||
2131 | goto cleanup; | 2131 | goto cleanup; |
2132 | } | 2132 | } |
2133 | } | 2133 | } |
2134 | GNUNET_free_non_null (uris); | 2134 | GNUNET_free (uris); |
2135 | uris = NULL; | 2135 | uris = NULL; |
2136 | if (GNUNET_OK != GNUNET_BIO_write_close (wh, NULL)) | 2136 | if (GNUNET_OK != GNUNET_BIO_write_close (wh, NULL)) |
2137 | { | 2137 | { |
@@ -2144,7 +2144,7 @@ GNUNET_FS_download_sync_ (struct GNUNET_FS_DownloadContext *dc) | |||
2144 | cleanup: | 2144 | cleanup: |
2145 | if (NULL != wh) | 2145 | if (NULL != wh) |
2146 | (void) GNUNET_BIO_write_close (wh, NULL); | 2146 | (void) GNUNET_BIO_write_close (wh, NULL); |
2147 | GNUNET_free_non_null (uris); | 2147 | GNUNET_free (uris); |
2148 | if (0 != unlink (fn)) | 2148 | if (0 != unlink (fn)) |
2149 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", fn); | 2149 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", fn); |
2150 | GNUNET_free (fn); | 2150 | GNUNET_free (fn); |
@@ -2235,10 +2235,10 @@ GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr) | |||
2235 | GNUNET_break (0); | 2235 | GNUNET_break (0); |
2236 | goto cleanup; | 2236 | goto cleanup; |
2237 | } | 2237 | } |
2238 | GNUNET_free_non_null (uris); | 2238 | GNUNET_free (uris); |
2239 | return; | 2239 | return; |
2240 | cleanup: | 2240 | cleanup: |
2241 | GNUNET_free_non_null (uris); | 2241 | GNUNET_free (uris); |
2242 | if (NULL != wh) | 2242 | if (NULL != wh) |
2243 | (void) GNUNET_BIO_write_close (wh, NULL); | 2243 | (void) GNUNET_BIO_write_close (wh, NULL); |
2244 | remove_sync_file_in_dir (sr->h, | 2244 | remove_sync_file_in_dir (sr->h, |
@@ -2309,7 +2309,7 @@ GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc) | |||
2309 | cleanup: | 2309 | cleanup: |
2310 | if (NULL != wh) | 2310 | if (NULL != wh) |
2311 | (void) GNUNET_BIO_write_close (wh, NULL); | 2311 | (void) GNUNET_BIO_write_close (wh, NULL); |
2312 | GNUNET_free_non_null (uris); | 2312 | GNUNET_free (uris); |
2313 | GNUNET_FS_remove_sync_file_ (sc->h, category, sc->serialization); | 2313 | GNUNET_FS_remove_sync_file_ (sc->h, category, sc->serialization); |
2314 | GNUNET_free (sc->serialization); | 2314 | GNUNET_free (sc->serialization); |
2315 | sc->serialization = NULL; | 2315 | sc->serialization = NULL; |
@@ -2359,7 +2359,7 @@ deserialize_unindex_file (void *cls, const char *filename) | |||
2359 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, "ksk offset", | 2359 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, "ksk offset", |
2360 | (int32_t *) &uc->ksk_offset))) | 2360 | (int32_t *) &uc->ksk_offset))) |
2361 | { | 2361 | { |
2362 | GNUNET_free_non_null (uris); | 2362 | GNUNET_free (uris); |
2363 | GNUNET_break (0); | 2363 | GNUNET_break (0); |
2364 | goto cleanup; | 2364 | goto cleanup; |
2365 | } | 2365 | } |
@@ -2370,7 +2370,7 @@ deserialize_unindex_file (void *cls, const char *filename) | |||
2370 | if (NULL == uc->ksk_uri) | 2370 | if (NULL == uc->ksk_uri) |
2371 | { | 2371 | { |
2372 | GNUNET_break (0); | 2372 | GNUNET_break (0); |
2373 | GNUNET_free_non_null (emsg); | 2373 | GNUNET_free (emsg); |
2374 | goto cleanup; | 2374 | goto cleanup; |
2375 | } | 2375 | } |
2376 | } | 2376 | } |
@@ -2472,7 +2472,7 @@ deserialize_unindex_file (void *cls, const char *filename) | |||
2472 | } | 2472 | } |
2473 | return GNUNET_OK; | 2473 | return GNUNET_OK; |
2474 | cleanup: | 2474 | cleanup: |
2475 | GNUNET_free_non_null (uc->filename); | 2475 | GNUNET_free (uc->filename); |
2476 | if ((NULL != rh) && (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))) | 2476 | if ((NULL != rh) && (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))) |
2477 | { | 2477 | { |
2478 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2478 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
@@ -2485,7 +2485,7 @@ cleanup: | |||
2485 | GNUNET_FS_remove_sync_file_ (h, | 2485 | GNUNET_FS_remove_sync_file_ (h, |
2486 | GNUNET_FS_SYNC_PATH_MASTER_UNINDEX, | 2486 | GNUNET_FS_SYNC_PATH_MASTER_UNINDEX, |
2487 | uc->serialization); | 2487 | uc->serialization); |
2488 | GNUNET_free_non_null (uc->serialization); | 2488 | GNUNET_free (uc->serialization); |
2489 | GNUNET_free (uc); | 2489 | GNUNET_free (uc); |
2490 | return GNUNET_OK; | 2490 | return GNUNET_OK; |
2491 | } | 2491 | } |
@@ -2665,10 +2665,10 @@ deserialize_search_result (void *cls, const char *filename) | |||
2665 | } | 2665 | } |
2666 | return GNUNET_OK; | 2666 | return GNUNET_OK; |
2667 | cleanup: | 2667 | cleanup: |
2668 | GNUNET_free_non_null (download); | 2668 | GNUNET_free (download); |
2669 | GNUNET_free_non_null (emsg); | 2669 | GNUNET_free (emsg); |
2670 | GNUNET_free_non_null (uris); | 2670 | GNUNET_free (uris); |
2671 | GNUNET_free_non_null (update_srch); | 2671 | GNUNET_free (update_srch); |
2672 | if (NULL != sr->uri) | 2672 | if (NULL != sr->uri) |
2673 | GNUNET_FS_uri_destroy (sr->uri); | 2673 | GNUNET_FS_uri_destroy (sr->uri); |
2674 | if (NULL != sr->meta) | 2674 | if (NULL != sr->meta) |
@@ -2823,8 +2823,8 @@ free_search_context (struct GNUNET_FS_SearchContext *sc) | |||
2823 | : GNUNET_FS_SYNC_PATH_CHILD_SEARCH, | 2823 | : GNUNET_FS_SYNC_PATH_CHILD_SEARCH, |
2824 | sc->serialization); | 2824 | sc->serialization); |
2825 | } | 2825 | } |
2826 | GNUNET_free_non_null (sc->serialization); | 2826 | GNUNET_free (sc->serialization); |
2827 | GNUNET_free_non_null (sc->emsg); | 2827 | GNUNET_free (sc->emsg); |
2828 | if (NULL != sc->uri) | 2828 | if (NULL != sc->uri) |
2829 | GNUNET_FS_uri_destroy (sc->uri); | 2829 | GNUNET_FS_uri_destroy (sc->uri); |
2830 | if (NULL != sc->master_result_map) | 2830 | if (NULL != sc->master_result_map) |
@@ -2896,10 +2896,10 @@ free_download_context (struct GNUNET_FS_DownloadContext *dc) | |||
2896 | GNUNET_CONTAINER_meta_data_destroy (dc->meta); | 2896 | GNUNET_CONTAINER_meta_data_destroy (dc->meta); |
2897 | if (NULL != dc->uri) | 2897 | if (NULL != dc->uri) |
2898 | GNUNET_FS_uri_destroy (dc->uri); | 2898 | GNUNET_FS_uri_destroy (dc->uri); |
2899 | GNUNET_free_non_null (dc->temp_filename); | 2899 | GNUNET_free (dc->temp_filename); |
2900 | GNUNET_free_non_null (dc->emsg); | 2900 | GNUNET_free (dc->emsg); |
2901 | GNUNET_free_non_null (dc->filename); | 2901 | GNUNET_free (dc->filename); |
2902 | GNUNET_free_non_null (dc->serialization); | 2902 | GNUNET_free (dc->serialization); |
2903 | while (NULL != (dcc = dc->child_head)) | 2903 | while (NULL != (dcc = dc->child_head)) |
2904 | { | 2904 | { |
2905 | GNUNET_CONTAINER_DLL_remove (dc->child_head, dc->child_tail, dcc); | 2905 | GNUNET_CONTAINER_DLL_remove (dc->child_head, dc->child_tail, dcc); |
@@ -3020,8 +3020,8 @@ deserialize_download (struct GNUNET_FS_Handle *h, | |||
3020 | dc->task = GNUNET_SCHEDULER_add_now (&GNUNET_FS_download_start_task_, dc); | 3020 | dc->task = GNUNET_SCHEDULER_add_now (&GNUNET_FS_download_start_task_, dc); |
3021 | return; | 3021 | return; |
3022 | cleanup: | 3022 | cleanup: |
3023 | GNUNET_free_non_null (uris); | 3023 | GNUNET_free (uris); |
3024 | GNUNET_free_non_null (emsg); | 3024 | GNUNET_free (emsg); |
3025 | free_download_context (dc); | 3025 | free_download_context (dc); |
3026 | } | 3026 | } |
3027 | 3027 | ||
@@ -3127,9 +3127,9 @@ deserialize_search (struct GNUNET_FS_Handle *h, | |||
3127 | GNUNET_free (uris); | 3127 | GNUNET_free (uris); |
3128 | return sc; | 3128 | return sc; |
3129 | cleanup: | 3129 | cleanup: |
3130 | GNUNET_free_non_null (emsg); | 3130 | GNUNET_free (emsg); |
3131 | free_search_context (sc); | 3131 | free_search_context (sc); |
3132 | GNUNET_free_non_null (uris); | 3132 | GNUNET_free (uris); |
3133 | return NULL; | 3133 | return NULL; |
3134 | } | 3134 | } |
3135 | 3135 | ||
diff --git a/src/fs/fs_directory.c b/src/fs/fs_directory.c index 1ef5fa3bb..9a198d8d7 100644 --- a/src/fs/fs_directory.c +++ b/src/fs/fs_directory.c | |||
@@ -309,8 +309,8 @@ GNUNET_FS_directory_list_contents (size_t size, | |||
309 | full_data.size, | 309 | full_data.size, |
310 | full_data.data); | 310 | full_data.data); |
311 | } | 311 | } |
312 | GNUNET_free_non_null (full_data.data); | 312 | GNUNET_free (full_data.data); |
313 | GNUNET_free_non_null (filename); | 313 | GNUNET_free (filename); |
314 | GNUNET_CONTAINER_meta_data_destroy (md); | 314 | GNUNET_CONTAINER_meta_data_destroy (md); |
315 | GNUNET_FS_uri_destroy (uri); | 315 | GNUNET_FS_uri_destroy (uri); |
316 | } | 316 | } |
@@ -630,9 +630,9 @@ GNUNET_FS_directory_builder_finish (struct GNUNET_FS_DirectoryBuilder *bld, | |||
630 | "malloc"); | 630 | "malloc"); |
631 | *rsize = 0; | 631 | *rsize = 0; |
632 | *rdata = NULL; | 632 | *rdata = NULL; |
633 | GNUNET_free_non_null (sizes); | 633 | GNUNET_free (sizes); |
634 | GNUNET_free_non_null (perm); | 634 | GNUNET_free (perm); |
635 | GNUNET_free_non_null (bes); | 635 | GNUNET_free (bes); |
636 | return GNUNET_SYSERR; | 636 | return GNUNET_SYSERR; |
637 | } | 637 | } |
638 | *rdata = data; | 638 | *rdata = data; |
@@ -662,9 +662,9 @@ GNUNET_FS_directory_builder_finish (struct GNUNET_FS_DirectoryBuilder *bld, | |||
662 | GNUNET_memcpy (&data[off - sizes[i]], &(bes[i])[1], sizes[i]); | 662 | GNUNET_memcpy (&data[off - sizes[i]], &(bes[i])[1], sizes[i]); |
663 | GNUNET_free (bes[i]); | 663 | GNUNET_free (bes[i]); |
664 | } | 664 | } |
665 | GNUNET_free_non_null (sizes); | 665 | GNUNET_free (sizes); |
666 | GNUNET_free_non_null (perm); | 666 | GNUNET_free (perm); |
667 | GNUNET_free_non_null (bes); | 667 | GNUNET_free (bes); |
668 | GNUNET_assert (off == size); | 668 | GNUNET_assert (off == size); |
669 | GNUNET_CONTAINER_meta_data_destroy (bld->meta); | 669 | GNUNET_CONTAINER_meta_data_destroy (bld->meta); |
670 | GNUNET_free (bld); | 670 | GNUNET_free (bld); |
diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c index 11efa053b..cb50182f9 100644 --- a/src/fs/fs_dirmetascan.c +++ b/src/fs/fs_dirmetascan.c | |||
@@ -106,7 +106,7 @@ GNUNET_FS_directory_scan_abort (struct GNUNET_FS_DirScanner *ds) | |||
106 | GNUNET_FS_share_tree_free (ds->toplevel); | 106 | GNUNET_FS_share_tree_free (ds->toplevel); |
107 | if (NULL != ds->stop_task) | 107 | if (NULL != ds->stop_task) |
108 | GNUNET_SCHEDULER_cancel (ds->stop_task); | 108 | GNUNET_SCHEDULER_cancel (ds->stop_task); |
109 | GNUNET_free_non_null (ds->ex_arg); | 109 | GNUNET_free (ds->ex_arg); |
110 | GNUNET_free (ds->filename_expanded); | 110 | GNUNET_free (ds->filename_expanded); |
111 | GNUNET_free (ds); | 111 | GNUNET_free (ds); |
112 | } | 112 | } |
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 4d03b6546..6154e8be0 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -960,7 +960,7 @@ trigger_recursive_download (void *cls, | |||
960 | "Failed to create directory for recursive download of `%s'\n"), | 960 | "Failed to create directory for recursive download of `%s'\n"), |
961 | full_name); | 961 | full_name); |
962 | GNUNET_free (full_name); | 962 | GNUNET_free (full_name); |
963 | GNUNET_free_non_null (fn); | 963 | GNUNET_free (fn); |
964 | return; | 964 | return; |
965 | } | 965 | } |
966 | 966 | ||
@@ -981,9 +981,9 @@ trigger_recursive_download (void *cls, | |||
981 | dc->options, | 981 | dc->options, |
982 | NULL, | 982 | NULL, |
983 | dc); | 983 | dc); |
984 | GNUNET_free_non_null (full_name); | 984 | GNUNET_free (full_name); |
985 | GNUNET_free_non_null (temp_name); | 985 | GNUNET_free (temp_name); |
986 | GNUNET_free_non_null (fn); | 986 | GNUNET_free (fn); |
987 | } | 987 | } |
988 | 988 | ||
989 | 989 | ||
@@ -999,7 +999,7 @@ GNUNET_FS_free_download_request_ (struct DownloadRequest *dr) | |||
999 | return; | 999 | return; |
1000 | for (unsigned int i = 0; i < dr->num_children; i++) | 1000 | for (unsigned int i = 0; i < dr->num_children; i++) |
1001 | GNUNET_FS_free_download_request_ (dr->children[i]); | 1001 | GNUNET_FS_free_download_request_ (dr->children[i]); |
1002 | GNUNET_free_non_null (dr->children); | 1002 | GNUNET_free (dr->children); |
1003 | GNUNET_free (dr); | 1003 | GNUNET_free (dr); |
1004 | } | 1004 | } |
1005 | 1005 | ||
@@ -2011,11 +2011,11 @@ GNUNET_FS_download_signal_suspend_ (void *cls) | |||
2011 | GNUNET_CONTAINER_multihashmap_destroy (dc->active); | 2011 | GNUNET_CONTAINER_multihashmap_destroy (dc->active); |
2012 | dc->active = NULL; | 2012 | dc->active = NULL; |
2013 | } | 2013 | } |
2014 | GNUNET_free_non_null (dc->filename); | 2014 | GNUNET_free (dc->filename); |
2015 | GNUNET_CONTAINER_meta_data_destroy (dc->meta); | 2015 | GNUNET_CONTAINER_meta_data_destroy (dc->meta); |
2016 | GNUNET_FS_uri_destroy (dc->uri); | 2016 | GNUNET_FS_uri_destroy (dc->uri); |
2017 | GNUNET_free_non_null (dc->temp_filename); | 2017 | GNUNET_free (dc->temp_filename); |
2018 | GNUNET_free_non_null (dc->serialization); | 2018 | GNUNET_free (dc->serialization); |
2019 | GNUNET_assert (NULL == dc->job_queue); | 2019 | GNUNET_assert (NULL == dc->job_queue); |
2020 | GNUNET_free (dc); | 2020 | GNUNET_free (dc); |
2021 | } | 2021 | } |
@@ -2409,7 +2409,7 @@ GNUNET_FS_download_stop (struct GNUNET_FS_DownloadContext *dc, int do_delete) | |||
2409 | dc->temp_filename); | 2409 | dc->temp_filename); |
2410 | GNUNET_free (dc->temp_filename); | 2410 | GNUNET_free (dc->temp_filename); |
2411 | } | 2411 | } |
2412 | GNUNET_free_non_null (dc->serialization); | 2412 | GNUNET_free (dc->serialization); |
2413 | GNUNET_assert (NULL == dc->job_queue); | 2413 | GNUNET_assert (NULL == dc->job_queue); |
2414 | GNUNET_free (dc); | 2414 | GNUNET_free (dc); |
2415 | } | 2415 | } |
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 28bbf12dd..3324abd58 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c | |||
@@ -75,7 +75,7 @@ void | |||
75 | GNUNET_FS_file_information_set_filename (struct GNUNET_FS_FileInformation *s, | 75 | GNUNET_FS_file_information_set_filename (struct GNUNET_FS_FileInformation *s, |
76 | const char *filename) | 76 | const char *filename) |
77 | { | 77 | { |
78 | GNUNET_free_non_null (s->filename); | 78 | GNUNET_free (s->filename); |
79 | if (filename) | 79 | if (filename) |
80 | s->filename = GNUNET_strdup (filename); | 80 | s->filename = GNUNET_strdup (filename); |
81 | else | 81 | else |
@@ -426,7 +426,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
426 | &fi->bo, | 426 | &fi->bo, |
427 | &no, | 427 | &no, |
428 | &fi->client_info); | 428 | &fi->client_info); |
429 | GNUNET_free_non_null (fi->data.dir.dir_data); | 429 | GNUNET_free (fi->data.dir.dir_data); |
430 | } | 430 | } |
431 | else | 431 | else |
432 | { | 432 | { |
@@ -447,8 +447,8 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
447 | &fi->data.file.do_index, | 447 | &fi->data.file.do_index, |
448 | &fi->client_info); | 448 | &fi->client_info); |
449 | } | 449 | } |
450 | GNUNET_free_non_null (fi->filename); | 450 | GNUNET_free (fi->filename); |
451 | GNUNET_free_non_null (fi->emsg); | 451 | GNUNET_free (fi->emsg); |
452 | if (NULL != fi->sks_uri) | 452 | if (NULL != fi->sks_uri) |
453 | GNUNET_FS_uri_destroy (fi->sks_uri); | 453 | GNUNET_FS_uri_destroy (fi->sks_uri); |
454 | if (NULL != fi->chk_uri) | 454 | if (NULL != fi->chk_uri) |
@@ -462,7 +462,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
462 | GNUNET_FS_uri_destroy (fi->keywords); | 462 | GNUNET_FS_uri_destroy (fi->keywords); |
463 | if (NULL != fi->meta) | 463 | if (NULL != fi->meta) |
464 | GNUNET_CONTAINER_meta_data_destroy (fi->meta); | 464 | GNUNET_CONTAINER_meta_data_destroy (fi->meta); |
465 | GNUNET_free_non_null (fi->serialization); | 465 | GNUNET_free (fi->serialization); |
466 | if (NULL != fi->te) | 466 | if (NULL != fi->te) |
467 | { | 467 | { |
468 | GNUNET_FS_tree_encoder_finish (fi->te, NULL); | 468 | GNUNET_FS_tree_encoder_finish (fi->te, NULL); |
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index f098032d7..508f9cadc 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -301,8 +301,8 @@ read_update_information_graph (struct GNUNET_FS_Handle *h, | |||
301 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) | 301 | if (GNUNET_OK != GNUNET_BIO_read_spec_commit (rh, rs)) |
302 | { | 302 | { |
303 | GNUNET_break (0); | 303 | GNUNET_break (0); |
304 | GNUNET_free_non_null (n->id); | 304 | GNUNET_free (n->id); |
305 | GNUNET_free_non_null (n->update); | 305 | GNUNET_free (n->update); |
306 | if (n->md != NULL) | 306 | if (n->md != NULL) |
307 | GNUNET_CONTAINER_meta_data_destroy (n->md); | 307 | GNUNET_CONTAINER_meta_data_destroy (n->md); |
308 | GNUNET_free (n); | 308 | GNUNET_free (n); |
@@ -315,7 +315,7 @@ read_update_information_graph (struct GNUNET_FS_Handle *h, | |||
315 | GNUNET_break (0); | 315 | GNUNET_break (0); |
316 | GNUNET_free (emsg); | 316 | GNUNET_free (emsg); |
317 | GNUNET_free (n->id); | 317 | GNUNET_free (n->id); |
318 | GNUNET_free_non_null (n->update); | 318 | GNUNET_free (n->update); |
319 | GNUNET_CONTAINER_meta_data_destroy (n->md); | 319 | GNUNET_CONTAINER_meta_data_destroy (n->md); |
320 | GNUNET_free (n); | 320 | GNUNET_free (n); |
321 | break; | 321 | break; |
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; |
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 8e2d7deba..3dbee43ef 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -830,7 +830,7 @@ process_kblock (struct GNUNET_FS_SearchContext *sc, | |||
830 | &pt[1], | 830 | &pt[1], |
831 | emsg); | 831 | emsg); |
832 | } | 832 | } |
833 | GNUNET_free_non_null (emsg); | 833 | GNUNET_free (emsg); |
834 | return; | 834 | return; |
835 | } | 835 | } |
836 | j = eos - pt + 1; | 836 | j = eos - pt + 1; |
@@ -900,7 +900,7 @@ process_sblock (struct GNUNET_FS_SearchContext *sc, | |||
900 | _ ("Failed to parse URI `%s': %s\n"), | 900 | _ ("Failed to parse URI `%s': %s\n"), |
901 | uris, emsg); | 901 | uris, emsg); |
902 | GNUNET_break_op (0); /* ublock malformed */ | 902 | GNUNET_break_op (0); /* ublock malformed */ |
903 | GNUNET_free_non_null (emsg); | 903 | GNUNET_free (emsg); |
904 | GNUNET_CONTAINER_meta_data_destroy (meta); | 904 | GNUNET_CONTAINER_meta_data_destroy (meta); |
905 | return; | 905 | return; |
906 | } | 906 | } |
@@ -1548,10 +1548,10 @@ search_result_suspend (void *cls, | |||
1548 | sr->client_info = GNUNET_FS_search_make_status_ (&pi, sc->h, sc); | 1548 | sr->client_info = GNUNET_FS_search_make_status_ (&pi, sc->h, sc); |
1549 | } | 1549 | } |
1550 | GNUNET_break (NULL == sr->client_info); | 1550 | GNUNET_break (NULL == sr->client_info); |
1551 | GNUNET_free_non_null (sr->serialization); | 1551 | GNUNET_free (sr->serialization); |
1552 | GNUNET_FS_uri_destroy (sr->uri); | 1552 | GNUNET_FS_uri_destroy (sr->uri); |
1553 | GNUNET_CONTAINER_meta_data_destroy (sr->meta); | 1553 | GNUNET_CONTAINER_meta_data_destroy (sr->meta); |
1554 | GNUNET_free_non_null (sr->keyword_bitmap); | 1554 | GNUNET_free (sr->keyword_bitmap); |
1555 | GNUNET_free (sr); | 1555 | GNUNET_free (sr); |
1556 | return GNUNET_OK; | 1556 | return GNUNET_OK; |
1557 | } | 1557 | } |
@@ -1596,10 +1596,10 @@ GNUNET_FS_search_signal_suspend_ (void *cls) | |||
1596 | GNUNET_free (sc->requests[i].keyword); | 1596 | GNUNET_free (sc->requests[i].keyword); |
1597 | } | 1597 | } |
1598 | } | 1598 | } |
1599 | GNUNET_free_non_null (sc->requests); | 1599 | GNUNET_free (sc->requests); |
1600 | GNUNET_free_non_null (sc->emsg); | 1600 | GNUNET_free (sc->emsg); |
1601 | GNUNET_FS_uri_destroy (sc->uri); | 1601 | GNUNET_FS_uri_destroy (sc->uri); |
1602 | GNUNET_free_non_null (sc->serialization); | 1602 | GNUNET_free (sc->serialization); |
1603 | GNUNET_free (sc); | 1603 | GNUNET_free (sc); |
1604 | } | 1604 | } |
1605 | 1605 | ||
@@ -1760,10 +1760,10 @@ search_result_free (void *cls, | |||
1760 | GNUNET_break (NULL == sr->probe_ctx); | 1760 | GNUNET_break (NULL == sr->probe_ctx); |
1761 | GNUNET_break (NULL == sr->probe_cancel_task); | 1761 | GNUNET_break (NULL == sr->probe_cancel_task); |
1762 | GNUNET_break (NULL == sr->client_info); | 1762 | GNUNET_break (NULL == sr->client_info); |
1763 | GNUNET_free_non_null (sr->serialization); | 1763 | GNUNET_free (sr->serialization); |
1764 | GNUNET_FS_uri_destroy (sr->uri); | 1764 | GNUNET_FS_uri_destroy (sr->uri); |
1765 | GNUNET_CONTAINER_meta_data_destroy (sr->meta); | 1765 | GNUNET_CONTAINER_meta_data_destroy (sr->meta); |
1766 | GNUNET_free_non_null (sr->keyword_bitmap); | 1766 | GNUNET_free (sr->keyword_bitmap); |
1767 | GNUNET_free (sr); | 1767 | GNUNET_free (sr); |
1768 | return GNUNET_OK; | 1768 | return GNUNET_OK; |
1769 | } | 1769 | } |
@@ -1825,8 +1825,8 @@ GNUNET_FS_search_stop (struct GNUNET_FS_SearchContext *sc) | |||
1825 | for (i = 0; i < sc->uri->data.ksk.keywordCount; i++) | 1825 | for (i = 0; i < sc->uri->data.ksk.keywordCount; i++) |
1826 | GNUNET_CONTAINER_multihashmap_destroy (sc->requests[i].results); | 1826 | GNUNET_CONTAINER_multihashmap_destroy (sc->requests[i].results); |
1827 | } | 1827 | } |
1828 | GNUNET_free_non_null (sc->requests); | 1828 | GNUNET_free (sc->requests); |
1829 | GNUNET_free_non_null (sc->emsg); | 1829 | GNUNET_free (sc->emsg); |
1830 | GNUNET_FS_uri_destroy (sc->uri); | 1830 | GNUNET_FS_uri_destroy (sc->uri); |
1831 | GNUNET_free (sc); | 1831 | GNUNET_free (sc); |
1832 | } | 1832 | } |
diff --git a/src/fs/fs_sharetree.c b/src/fs/fs_sharetree.c index e291938b5..ac850076d 100644 --- a/src/fs/fs_sharetree.c +++ b/src/fs/fs_sharetree.c | |||
@@ -447,8 +447,8 @@ GNUNET_FS_share_tree_free (struct GNUNET_FS_ShareTreeItem *toplevel) | |||
447 | GNUNET_CONTAINER_meta_data_destroy (toplevel->meta); | 447 | GNUNET_CONTAINER_meta_data_destroy (toplevel->meta); |
448 | if (NULL != toplevel->ksk_uri) | 448 | if (NULL != toplevel->ksk_uri) |
449 | GNUNET_FS_uri_destroy (toplevel->ksk_uri); | 449 | GNUNET_FS_uri_destroy (toplevel->ksk_uri); |
450 | GNUNET_free_non_null (toplevel->filename); | 450 | GNUNET_free (toplevel->filename); |
451 | GNUNET_free_non_null (toplevel->short_filename); | 451 | GNUNET_free (toplevel->short_filename); |
452 | GNUNET_free (toplevel); | 452 | GNUNET_free (toplevel); |
453 | } | 453 | } |
454 | 454 | ||
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index a0fe336df..dc4b214d9 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c | |||
@@ -195,7 +195,7 @@ report_uri (void *cls) | |||
195 | if ((GNUNET_YES != po->do_index) && | 195 | if ((GNUNET_YES != po->do_index) && |
196 | (NULL != po->publish_tmp_file)) | 196 | (NULL != po->publish_tmp_file)) |
197 | (void) GNUNET_DISK_directory_remove (po->publish_tmp_file); | 197 | (void) GNUNET_DISK_directory_remove (po->publish_tmp_file); |
198 | GNUNET_free_non_null (po->publish_tmp_file); | 198 | GNUNET_free (po->publish_tmp_file); |
199 | GNUNET_free (po); | 199 | GNUNET_free (po); |
200 | } | 200 | } |
201 | 201 | ||
@@ -217,7 +217,7 @@ publish_timeout (void *cls) | |||
217 | GNUNET_FS_publish_stop (po->publish_context); | 217 | GNUNET_FS_publish_stop (po->publish_context); |
218 | po->publish_cont (po->publish_cont_cls, NULL, NULL); | 218 | po->publish_cont (po->publish_cont_cls, NULL, NULL); |
219 | (void) GNUNET_DISK_directory_remove (po->publish_tmp_file); | 219 | (void) GNUNET_DISK_directory_remove (po->publish_tmp_file); |
220 | GNUNET_free_non_null (po->publish_tmp_file); | 220 | GNUNET_free (po->publish_tmp_file); |
221 | GNUNET_free (po); | 221 | GNUNET_free (po); |
222 | } | 222 | } |
223 | 223 | ||
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c index e7f922823..6203690d2 100644 --- a/src/fs/fs_tree.c +++ b/src/fs/fs_tree.c | |||
@@ -454,7 +454,7 @@ GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, | |||
454 | if (emsg != NULL) | 454 | if (emsg != NULL) |
455 | *emsg = te->emsg; | 455 | *emsg = te->emsg; |
456 | else | 456 | else |
457 | GNUNET_free_non_null (te->emsg); | 457 | GNUNET_free (te->emsg); |
458 | GNUNET_free (te->chk_tree); | 458 | GNUNET_free (te->chk_tree); |
459 | GNUNET_free (te); | 459 | GNUNET_free (te); |
460 | } | 460 | } |
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index f2315d7d0..8c27af9de 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -415,7 +415,7 @@ GNUNET_FS_unindex_do_extract_keywords_ (struct GNUNET_FS_UnindexContext *uc) | |||
415 | GNUNET_NO, ex, | 415 | GNUNET_NO, ex, |
416 | &unindex_directory_scan_cb, | 416 | &unindex_directory_scan_cb, |
417 | uc); | 417 | uc); |
418 | GNUNET_free_non_null (ex); | 418 | GNUNET_free (ex); |
419 | } | 419 | } |
420 | 420 | ||
421 | 421 | ||
@@ -777,8 +777,8 @@ GNUNET_FS_unindex_signal_suspend_ (void *cls) | |||
777 | UNINDEX_STATE_COMPLETE) ? uc->file_size : 0); | 777 | UNINDEX_STATE_COMPLETE) ? uc->file_size : 0); |
778 | GNUNET_break (NULL == uc->client_info); | 778 | GNUNET_break (NULL == uc->client_info); |
779 | GNUNET_free (uc->filename); | 779 | GNUNET_free (uc->filename); |
780 | GNUNET_free_non_null (uc->serialization); | 780 | GNUNET_free (uc->serialization); |
781 | GNUNET_free_non_null (uc->emsg); | 781 | GNUNET_free (uc->emsg); |
782 | GNUNET_free (uc); | 782 | GNUNET_free (uc); |
783 | } | 783 | } |
784 | 784 | ||
@@ -892,7 +892,7 @@ GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc) | |||
892 | (uc->state == | 892 | (uc->state == |
893 | UNINDEX_STATE_COMPLETE) ? uc->file_size : 0); | 893 | UNINDEX_STATE_COMPLETE) ? uc->file_size : 0); |
894 | GNUNET_break (NULL == uc->client_info); | 894 | GNUNET_break (NULL == uc->client_info); |
895 | GNUNET_free_non_null (uc->emsg); | 895 | GNUNET_free (uc->emsg); |
896 | GNUNET_free (uc->filename); | 896 | GNUNET_free (uc->filename); |
897 | GNUNET_free (uc); | 897 | GNUNET_free (uc); |
898 | } | 898 | } |
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 410f3c815..9c430ad9d 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -353,7 +353,7 @@ uri_ksk_parse (const char *s, char **emsg) | |||
353 | return ret; | 353 | return ret; |
354 | CLEANUP: | 354 | CLEANUP: |
355 | for (i = 0; i < max; i++) | 355 | for (i = 0; i < max; i++) |
356 | GNUNET_free_non_null (keywords[i]); | 356 | GNUNET_free (keywords[i]); |
357 | GNUNET_free (keywords); | 357 | GNUNET_free (keywords); |
358 | GNUNET_free (dup); | 358 | GNUNET_free (dup); |
359 | return NULL; | 359 | return NULL; |
@@ -1172,7 +1172,7 @@ GNUNET_FS_uri_ksk_create_from_args (unsigned int argc, const char **argv) | |||
1172 | strlen (GNUNET_FS_URI_PREFIX))) && | 1172 | strlen (GNUNET_FS_URI_PREFIX))) && |
1173 | (NULL != (uri = GNUNET_FS_uri_parse (argv[0], &emsg)))) | 1173 | (NULL != (uri = GNUNET_FS_uri_parse (argv[0], &emsg)))) |
1174 | return uri; | 1174 | return uri; |
1175 | GNUNET_free_non_null (emsg); | 1175 | GNUNET_free (emsg); |
1176 | uri = GNUNET_new (struct GNUNET_FS_Uri); | 1176 | uri = GNUNET_new (struct GNUNET_FS_Uri); |
1177 | uri->type = GNUNET_FS_URI_KSK; | 1177 | uri->type = GNUNET_FS_URI_KSK; |
1178 | uri->data.ksk.keywordCount = argc; | 1178 | uri->data.ksk.keywordCount = argc; |
@@ -1825,7 +1825,7 @@ GNUNET_FS_uri_ksk_create_from_meta_data ( | |||
1825 | ret->data.ksk.keywords, | 1825 | ret->data.ksk.keywords, |
1826 | ret->data.ksk.keywordCount); | 1826 | ret->data.ksk.keywordCount); |
1827 | if (ent > 0) | 1827 | if (ent > 0) |
1828 | GNUNET_free_non_null (full_name); | 1828 | GNUNET_free (full_name); |
1829 | return ret; | 1829 | return ret; |
1830 | } | 1830 | } |
1831 | 1831 | ||
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c index 3aed0268b..ee4a719e0 100644 --- a/src/fs/gnunet-auto-share.c +++ b/src/fs/gnunet-auto-share.c | |||
@@ -227,13 +227,13 @@ load_state () | |||
227 | return; | 227 | return; |
228 | rh = NULL; | 228 | rh = NULL; |
229 | error: | 229 | error: |
230 | GNUNET_free_non_null (fn); | 230 | GNUNET_free (fn); |
231 | if (NULL != rh) | 231 | if (NULL != rh) |
232 | (void) GNUNET_BIO_read_close (rh, &emsg); | 232 | (void) GNUNET_BIO_read_close (rh, &emsg); |
233 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 233 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
234 | _ ("Failed to load state: %s\n"), | 234 | _ ("Failed to load state: %s\n"), |
235 | emsg); | 235 | emsg); |
236 | GNUNET_free_non_null (emsg); | 236 | GNUNET_free (emsg); |
237 | } | 237 | } |
238 | 238 | ||
239 | 239 | ||
@@ -781,7 +781,7 @@ main (int argc, char *const *argv) | |||
781 | shc_chld = NULL; | 781 | shc_chld = NULL; |
782 | GNUNET_DISK_pipe_close (sigpipe); | 782 | GNUNET_DISK_pipe_close (sigpipe); |
783 | sigpipe = NULL; | 783 | sigpipe = NULL; |
784 | GNUNET_free_non_null (cfg_filename); | 784 | GNUNET_free (cfg_filename); |
785 | cfg_filename = NULL; | 785 | cfg_filename = NULL; |
786 | GNUNET_free_nz ((void *) argv); | 786 | GNUNET_free_nz ((void *) argv); |
787 | return ok; | 787 | return ok; |
diff --git a/src/fs/gnunet-directory.c b/src/fs/gnunet-directory.c index 10a09f73b..ef5c40ae2 100644 --- a/src/fs/gnunet-directory.c +++ b/src/fs/gnunet-directory.c | |||
@@ -106,7 +106,7 @@ print_entry (void *cls, | |||
106 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 106 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); |
107 | printf ("\n"); | 107 | printf ("\n"); |
108 | printf (_ ("Directory `%s' contents:\n"), name ? name : ""); | 108 | printf (_ ("Directory `%s' contents:\n"), name ? name : ""); |
109 | GNUNET_free_non_null (name); | 109 | GNUNET_free (name); |
110 | return; | 110 | return; |
111 | } | 111 | } |
112 | string = GNUNET_FS_uri_to_string (uri); | 112 | string = GNUNET_FS_uri_to_string (uri); |
@@ -114,7 +114,7 @@ print_entry (void *cls, | |||
114 | GNUNET_free (string); | 114 | GNUNET_free (string); |
115 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 115 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); |
116 | printf ("\n"); | 116 | printf ("\n"); |
117 | GNUNET_free_non_null (name); | 117 | GNUNET_free (name); |
118 | } | 118 | } |
119 | 119 | ||
120 | 120 | ||
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index b10e6163c..91fcd8f8a 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -729,7 +729,7 @@ identity_continuation (const char *args0) | |||
729 | _ ("Failed to access `%s': %s\n"), | 729 | _ ("Failed to access `%s': %s\n"), |
730 | args0, | 730 | args0, |
731 | strerror (errno)); | 731 | strerror (errno)); |
732 | GNUNET_free_non_null (ex); | 732 | GNUNET_free (ex); |
733 | return; | 733 | return; |
734 | } | 734 | } |
735 | ds = GNUNET_FS_directory_scan_start (args0, | 735 | ds = GNUNET_FS_directory_scan_start (args0, |
@@ -744,10 +744,10 @@ identity_continuation (const char *args0) | |||
744 | "%s", | 744 | "%s", |
745 | _ ( | 745 | _ ( |
746 | "Failed to start meta directory scanner. Is gnunet-helper-publish-fs installed?\n")); | 746 | "Failed to start meta directory scanner. Is gnunet-helper-publish-fs installed?\n")); |
747 | GNUNET_free_non_null (ex); | 747 | GNUNET_free (ex); |
748 | return; | 748 | return; |
749 | } | 749 | } |
750 | GNUNET_free_non_null (ex); | 750 | GNUNET_free (ex); |
751 | } | 751 | } |
752 | 752 | ||
753 | 753 | ||
diff --git a/src/fs/gnunet-search.c b/src/fs/gnunet-search.c index 098633379..d25ae55e6 100644 --- a/src/fs/gnunet-search.c +++ b/src/fs/gnunet-search.c | |||
@@ -127,7 +127,7 @@ clean_task (void *cls) | |||
127 | _ ("Failed to write directory with search results to `%s'\n"), | 127 | _ ("Failed to write directory with search results to `%s'\n"), |
128 | output_filename); | 128 | output_filename); |
129 | } | 129 | } |
130 | GNUNET_free_non_null (ddata); | 130 | GNUNET_free (ddata); |
131 | GNUNET_free (output_filename); | 131 | GNUNET_free (output_filename); |
132 | } | 132 | } |
133 | 133 | ||
@@ -197,7 +197,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
197 | NULL); | 197 | NULL); |
198 | printf ("\n"); | 198 | printf ("\n"); |
199 | fflush (stdout); | 199 | fflush (stdout); |
200 | GNUNET_free_non_null (filename); | 200 | GNUNET_free (filename); |
201 | GNUNET_free (uri); | 201 | GNUNET_free (uri); |
202 | results++; | 202 | results++; |
203 | if ((results_limit > 0) && (results >= results_limit)) | 203 | if ((results_limit > 0) && (results >= results_limit)) |
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index 71de5668b..150dd72e2 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c | |||
@@ -588,7 +588,7 @@ GSF_pending_request_get_message_ (struct GSF_PendingRequest *pr) | |||
588 | if (NULL != pr->public_data.target) | 588 | if (NULL != pr->public_data.target) |
589 | ext[k++] = *pr->public_data.target; | 589 | ext[k++] = *pr->public_data.target; |
590 | GNUNET_memcpy (&ext[k], bf_data, bf_size); | 590 | GNUNET_memcpy (&ext[k], bf_data, bf_size); |
591 | GNUNET_free_non_null (bf_data); | 591 | GNUNET_free (bf_data); |
592 | return env; | 592 | return env; |
593 | } | 593 | } |
594 | 594 | ||
@@ -622,7 +622,7 @@ clean_request (void *cls, const struct GNUNET_HashCode *key, void *value) | |||
622 | cont (pr->llc_cont_cls, pr, pr->local_result); | 622 | cont (pr->llc_cont_cls, pr, pr->local_result); |
623 | } | 623 | } |
624 | GSF_plan_notify_request_done_ (pr); | 624 | GSF_plan_notify_request_done_ (pr); |
625 | GNUNET_free_non_null (pr->replies_seen); | 625 | GNUNET_free (pr->replies_seen); |
626 | GNUNET_BLOCK_group_destroy (pr->bg); | 626 | GNUNET_BLOCK_group_destroy (pr->bg); |
627 | pr->bg = NULL; | 627 | pr->bg = NULL; |
628 | GNUNET_PEER_change_rc (pr->sender_pid, -1); | 628 | GNUNET_PEER_change_rc (pr->sender_pid, -1); |
diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c index 391b667cb..9305471d6 100644 --- a/src/fs/test_fs_file_information.c +++ b/src/fs/test_fs_file_information.c | |||
@@ -129,8 +129,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
129 | GNUNET_FS_file_information_destroy (fidir, &mycleaner, NULL); | 129 | GNUNET_FS_file_information_destroy (fidir, &mycleaner, NULL); |
130 | GNUNET_DISK_directory_remove (fn1); | 130 | GNUNET_DISK_directory_remove (fn1); |
131 | GNUNET_DISK_directory_remove (fn2); | 131 | GNUNET_DISK_directory_remove (fn2); |
132 | GNUNET_free_non_null (fn1); | 132 | GNUNET_free (fn1); |
133 | GNUNET_free_non_null (fn2); | 133 | GNUNET_free (fn2); |
134 | GNUNET_FS_stop (fs); | 134 | GNUNET_FS_stop (fs); |
135 | } | 135 | } |
136 | 136 | ||
diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index 484884243..c1e10d575 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c | |||
@@ -190,7 +190,7 @@ publish_cont (void *cls, const struct GNUNET_FS_Uri *ksk_uri, const char *emsg) | |||
190 | fprintf (stderr, "failed to parse URI `%s': %s\n", sbuf, msg); | 190 | fprintf (stderr, "failed to parse URI `%s': %s\n", sbuf, msg); |
191 | err = 1; | 191 | err = 1; |
192 | GNUNET_FS_stop (fs); | 192 | GNUNET_FS_stop (fs); |
193 | GNUNET_free_non_null (msg); | 193 | GNUNET_free (msg); |
194 | return; | 194 | return; |
195 | } | 195 | } |
196 | ksk_search = | 196 | ksk_search = |