File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
30
#include <stdlib.h> /* exit */
31
31
#include <string.h> /* memcmp, memset, strlen */
32
32
33
+ #include "base_alloc_global.h"
34
+
33
35
#if defined(HASH_DEFINE_OWN_STDINT ) && HASH_DEFINE_OWN_STDINT
34
36
/* This codepath is provided for backward compatibility, but I plan to remove it. */
35
37
#warning \
@@ -77,10 +79,10 @@ typedef unsigned char uint8_t;
77
79
#endif
78
80
79
81
#ifndef uthash_malloc
80
- #define uthash_malloc (sz ) malloc (sz) /* malloc fcn */
82
+ #define uthash_malloc (sz ) umf_ba_global_alloc (sz) /* malloc fcn */
81
83
#endif
82
84
#ifndef uthash_free
83
- #define uthash_free (ptr , sz ) free (ptr) /* free fcn */
85
+ #define uthash_free (ptr , sz ) umf_ba_global_free (ptr) /* free fcn */
84
86
#endif
85
87
#ifndef uthash_bzero
86
88
#define uthash_bzero (a , n ) memset(a, '\0', n)
You can’t perform that action at this time.
0 commit comments