From: Richard Mudgett Date: Thu, 21 Sep 2017 19:43:09 +0000 (-0500) Subject: heap.c: No need to calloc heap pointer array. X-Git-Tag: 13.18.0-rc1~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a433bb38b5a26078697d8458aa24cd3bb924905d;p=thirdparty%2Fasterisk.git heap.c: No need to calloc heap pointer array. Change-Id: I5ae2f316229f336eb90d99c7af7ed07a33097e68 --- diff --git a/main/heap.c b/main/heap.c index d40682af0b..c0485652bd 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);