From: Maria Matejka Date: Mon, 8 Jul 2019 11:00:13 +0000 (+0200) Subject: Libdmalloc macros fixed X-Git-Tag: v2.0.5~27 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbird.git;a=commitdiff_plain;h=2ce25ebbefd2eaf517361a446fe40679e78e23e9 Libdmalloc macros fixed --- diff --git a/lib/resource.h b/lib/resource.h index d9d4bb8f1..91049b81e 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -101,9 +101,9 @@ void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_siz */ #define DMALLOC_DISABLE #include -#define xmalloc(size) _xmalloc_leap(__FILE__, __LINE__, size) -#define xrealloc(size) _xrealloc_leap(__FILE__, __LINE__, size) -#define xfree(ptr) _xfree_leap(__FILE__, __LINE__, ptr) +#define xmalloc(size) dmalloc_malloc(__FILE__, __LINE__, (size), DMALLOC_FUNC_MALLOC, 0, 1) +#define xrealloc(ptr, size) dmalloc_realloc(__FILE__, __LINE__, (ptr), (size), DMALLOC_FUNC_REALLOC, 1) +#define xfree(ptr) dmalloc_free(__FILE__, __LINE__, (ptr), DMALLOC_FUNC_FREE) #else /* * Unfortunately, several libraries we might want to link to define