aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
commite31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch)
tree61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/datacache
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/plugin_datacache_heap.c4
-rw-r--r--src/datacache/plugin_datacache_sqlite.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c
index dbc9cac9c..074437e7d 100644
--- a/src/datacache/plugin_datacache_heap.c
+++ b/src/datacache/plugin_datacache_heap.c
@@ -395,7 +395,7 @@ heap_plugin_del (void *cls)
395 plugin->env->delete_notify (plugin->env->cls, 395 plugin->env->delete_notify (plugin->env->cls,
396 &val->key, 396 &val->key,
397 val->size + OVERHEAD); 397 val->size + OVERHEAD);
398 GNUNET_free_non_null (val->path_info); 398 GNUNET_free (val->path_info);
399 GNUNET_free (val); 399 GNUNET_free (val);
400 return GNUNET_OK; 400 return GNUNET_OK;
401} 401}
@@ -577,7 +577,7 @@ libgnunet_plugin_datacache_heap_done (void *cls)
577 GNUNET_CONTAINER_multihashmap_remove (plugin->map, 577 GNUNET_CONTAINER_multihashmap_remove (plugin->map,
578 &val->key, 578 &val->key,
579 val)); 579 val));
580 GNUNET_free_non_null (val->path_info); 580 GNUNET_free (val->path_info);
581 GNUNET_free (val); 581 GNUNET_free (val);
582 } 582 }
583 GNUNET_CONTAINER_heap_destroy (plugin->heaps[i]); 583 GNUNET_CONTAINER_heap_destroy (plugin->heaps[i]);
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 55a8a7fae..a7da6b068 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -764,7 +764,7 @@ libgnunet_plugin_datacache_sqlite_done (void *cls)
764#if ! WINDOWS || defined(__CYGWIN__) 764#if ! WINDOWS || defined(__CYGWIN__)
765 if ((NULL != plugin->fn) && (0 != unlink (plugin->fn))) 765 if ((NULL != plugin->fn) && (0 != unlink (plugin->fn)))
766 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "unlink", plugin->fn); 766 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "unlink", plugin->fn);
767 GNUNET_free_non_null (plugin->fn); 767 GNUNET_free (plugin->fn);
768#endif 768#endif
769 sqlite3_finalize (plugin->insert_stmt); 769 sqlite3_finalize (plugin->insert_stmt);
770 sqlite3_finalize (plugin->get_count_stmt); 770 sqlite3_finalize (plugin->get_count_stmt);