From 9d8510dfa28d8863bdf47a0c3e6ac63c69b719c0 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 17 Sep 2014 22:58:46 +0100 Subject: [PATCH] Use mosquitto memory allocation functions in uthash, to give better heap reporting. --- config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.h b/config.h index cdc62497..e8995d47 100644 --- a/config.h +++ b/config.h @@ -17,3 +17,8 @@ #define strtok_r strtok_s #define strerror_r(e, b, l) strerror_s(b, l, e) #endif + + +#define uthash_malloc(sz) _mosquitto_malloc(sz) +#define uthash_free(ptr,sz) _mosquitto_free(ptr) +