From 37935c79f66be9946a32b8080d75c8d545d7129b Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 21 Sep 2017 14:43:09 -0500 Subject: [PATCH] heap.c: No need to calloc heap pointer array. Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68 --- main/heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/heap.c b/main/heap.c index 73280fedc1..45c16a5175 100644 --- a/main/heap.c +++ b/main/heap.c @@ -146,9 +146,9 @@ struct ast_heap *ast_heap_create(unsigned int init_height, ast_heap_cmp_fn cmp_f if (!(h->heap = #ifdef __AST_DEBUG_MALLOC - __ast_calloc(1, h->avail_len * sizeof(void *), file, lineno, func) + __ast_malloc(h->avail_len * sizeof(void *), file, lineno, func) #else - ast_calloc(1, h->avail_len * sizeof(void *)) + ast_malloc(h->avail_len * sizeof(void *)) #endif )) { ast_free(h); -- 2.47.2