From f1e4914b5f379f9821274e8ddc4196b152fcc9b0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 8 Dec 2007 14:50:41 +0000 Subject: (svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions. --- src/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/queue.cpp') diff --git a/src/queue.cpp b/src/queue.cpp index 53a63bc30..177845865 100644 --- a/src/queue.cpp +++ b/src/queue.cpp @@ -310,7 +310,7 @@ void init_Hash(Hash* h, Hash_HashProc* hash, uint num_buckets) h->hash = hash; h->size = 0; h->num_buckets = num_buckets; - h->buckets = (HashNode*)malloc(num_buckets * (sizeof(*h->buckets) + sizeof(*h->buckets_in_use))); + h->buckets = (HashNode*)MallocT(num_buckets * (sizeof(*h->buckets) + sizeof(*h->buckets_in_use))); #ifdef HASH_DEBUG debug("Buckets = %p", h->buckets); #endif -- cgit v1.2.3-54-g00ecf