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/datastore | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 6 | ||||
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 8 | ||||
-rw-r--r-- | src/datastore/test_datastore_api.c | 2 | ||||
-rw-r--r-- | src/datastore/test_datastore_api_management.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 3fc46e19c..1c9e5e463 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -1355,7 +1355,7 @@ cleaning_task (void *cls) | |||
1355 | GNUNET_SCHEDULER_cancel (stat_timeout_task); | 1355 | GNUNET_SCHEDULER_cancel (stat_timeout_task); |
1356 | stat_timeout_task = NULL; | 1356 | stat_timeout_task = NULL; |
1357 | } | 1357 | } |
1358 | GNUNET_free_non_null (plugin_name); | 1358 | GNUNET_free (plugin_name); |
1359 | plugin_name = NULL; | 1359 | plugin_name = NULL; |
1360 | if (last_sync > 0) | 1360 | if (last_sync > 0) |
1361 | sync_stats (); | 1361 | sync_stats (); |
@@ -1490,7 +1490,7 @@ run (void *cls, | |||
1490 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1490 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1491 | _ ("Could not use specified filename `%s' for bloomfilter.\n"), | 1491 | _ ("Could not use specified filename `%s' for bloomfilter.\n"), |
1492 | NULL != fn ? fn : ""); | 1492 | NULL != fn ? fn : ""); |
1493 | GNUNET_free_non_null (fn); | 1493 | GNUNET_free (fn); |
1494 | fn = NULL; | 1494 | fn = NULL; |
1495 | } | 1495 | } |
1496 | if (NULL != fn) | 1496 | if (NULL != fn) |
@@ -1566,7 +1566,7 @@ run (void *cls, | |||
1566 | 5); /* approx. 3% false positives at max use */ | 1566 | 5); /* approx. 3% false positives at max use */ |
1567 | refresh_bf = GNUNET_YES; | 1567 | refresh_bf = GNUNET_YES; |
1568 | } | 1568 | } |
1569 | GNUNET_free_non_null (fn); | 1569 | GNUNET_free (fn); |
1570 | if (NULL == filter) | 1570 | if (NULL == filter) |
1571 | { | 1571 | { |
1572 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1572 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index b3b30f256..cecc37978 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -550,7 +550,7 @@ database_shutdown (struct Plugin *plugin) | |||
550 | #endif | 550 | #endif |
551 | if (SQLITE_OK != result) | 551 | if (SQLITE_OK != result) |
552 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR, "sqlite3_close"); | 552 | LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR, "sqlite3_close"); |
553 | GNUNET_free_non_null (plugin->fn); | 553 | GNUNET_free (plugin->fn); |
554 | } | 554 | } |
555 | 555 | ||
556 | 556 | ||
@@ -640,7 +640,7 @@ sqlite_plugin_put (void *cls, | |||
640 | GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 640 | GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
641 | "sqlite3_step"); | 641 | "sqlite3_step"); |
642 | cont (cont_cls, key, size, GNUNET_SYSERR, msg); | 642 | cont (cont_cls, key, size, GNUNET_SYSERR, msg); |
643 | GNUNET_free_non_null (msg); | 643 | GNUNET_free (msg); |
644 | return; | 644 | return; |
645 | } | 645 | } |
646 | int changes = sqlite3_changes (plugin->dbh); | 646 | int changes = sqlite3_changes (plugin->dbh); |
@@ -724,12 +724,12 @@ sqlite_plugin_put (void *cls, | |||
724 | database_shutdown (plugin); | 724 | database_shutdown (plugin); |
725 | database_setup (plugin->env->cfg, plugin); | 725 | database_setup (plugin->env->cfg, plugin); |
726 | cont (cont_cls, key, size, GNUNET_SYSERR, msg); | 726 | cont (cont_cls, key, size, GNUNET_SYSERR, msg); |
727 | GNUNET_free_non_null (msg); | 727 | GNUNET_free (msg); |
728 | return; | 728 | return; |
729 | } | 729 | } |
730 | GNUNET_SQ_reset (plugin->dbh, stmt); | 730 | GNUNET_SQ_reset (plugin->dbh, stmt); |
731 | cont (cont_cls, key, size, ret, msg); | 731 | cont (cont_cls, key, size, ret, msg); |
732 | GNUNET_free_non_null (msg); | 732 | GNUNET_free (msg); |
733 | } | 733 | } |
734 | 734 | ||
735 | 735 | ||
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index dbe590bab..e72a6acd3 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -198,7 +198,7 @@ check_success (void *cls, | |||
198 | msg); | 198 | msg); |
199 | crc->phase = RP_ERROR; | 199 | crc->phase = RP_ERROR; |
200 | } | 200 | } |
201 | GNUNET_free_non_null (crc->data); | 201 | GNUNET_free (crc->data); |
202 | crc->data = NULL; | 202 | crc->data = NULL; |
203 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); | 203 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); |
204 | } | 204 | } |
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c index 7bec0d064..175765267 100644 --- a/src/datastore/test_datastore_api_management.c +++ b/src/datastore/test_datastore_api_management.c | |||
@@ -131,7 +131,7 @@ check_success (void *cls, int success, struct GNUNET_TIME_Absolute | |||
131 | if (GNUNET_OK != success) | 131 | if (GNUNET_OK != success) |
132 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s\n", msg); | 132 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s\n", msg); |
133 | GNUNET_assert (GNUNET_OK == success); | 133 | GNUNET_assert (GNUNET_OK == success); |
134 | GNUNET_free_non_null (crc->data); | 134 | GNUNET_free (crc->data); |
135 | crc->data = NULL; | 135 | crc->data = NULL; |
136 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); | 136 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); |
137 | } | 137 | } |