aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
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/util/common_allocation.c
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index fd91e23b2..4aad49777 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -323,13 +323,12 @@ GNUNET_xrealloc_ (void *ptr, size_t n, const char *filename, int linenumber)
323 * want to keep track of allocations. 323 * want to keep track of allocations.
324 * 324 *
325 * @param ptr the pointer to free 325 * @param ptr the pointer to free
326 * @param filename where in the code was the call to GNUNET_free 326 * @param filename where in the code was the call to GNUNET_free()
327 * @param linenumber where in the code was the call to GNUNET_free 327 * @param linenumber where in the code was the call to GNUNET_free()
328 */ 328 */
329void 329void
330GNUNET_xfree_ (void *ptr, const char *filename, int linenumber) 330GNUNET_xfree_ (void *ptr, const char *filename, int linenumber)
331{ 331{
332 GNUNET_assert_at (NULL != ptr, filename, linenumber);
333#ifdef W32_MEM_LIMIT 332#ifdef W32_MEM_LIMIT
334 ptr = &((size_t *) ptr)[-1]; 333 ptr = &((size_t *) ptr)[-1];
335 mem_used -= *((size_t *) ptr); 334 mem_used -= *((size_t *) ptr);